From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Date: Sun, 21 Mar 2010 03:08:02 +0000 Subject: Re: [PATCH v2 6/6] hid: add experimental access to PicoLCD device's Message-Id: <20100321030802.GB29360@core.coreip.homeip.net> List-Id: References: <20100320170014.440959a8@neptune.home> <20100320171119.193c5615@neptune.home> In-Reply-To: <20100320171119.193c5615@neptune.home> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Bruno =?iso-8859-1?Q?Pr=E9mont?= Cc: Jiri Kosina , linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Rick L. Vinyard Jr." , Nicu Pavel , Oliver Neukum , Jaya Kumar On Sat, Mar 20, 2010 at 05:11:19PM +0100, Bruno Pr=E9mont wrote: > The PicoLCD device has a small amount of EEPROM and also provides > access to its FLASH where firmware and splash image are saved. > In flasher mode FLASH access is the only active feature. >=20 > Give read/write access to both via debugfs files. >=20 It looks you are allowing multiple users access to these files. What will happen if 2 processes try to write EEPROM at the same time? > + > +static inline int picolcd_init_devfs(struct picolcd_data *data, > + struct hid_report *eeprom_r, struct hid_report *eeprom_w, > + struct hid_report *flash_r, struct hid_report *flash_w, > + struct hid_report *reset) > +{ I don't think this should be forced inline. Thanks. --=20 Dmitry