Re: [RESEND PATCH v2 04/13] eeprom: at24: make locking more fine-grained

2016-05-03 Thread Bartosz Golaszewski
2016-04-16 22:56 GMT+02:00 Wolfram Sang : > On Mon, Apr 11, 2016 at 11:57:20AM -0700, Bartosz Golaszewski wrote: >> The only field in struct at24_data that needs locking in the module >> code is u8 *writebuf. Other data is already protected by i2c core. >> >> Rename the lock in at24_data to wrbuf_l

Re: [RESEND PATCH v2 04/13] eeprom: at24: make locking more fine-grained

2016-04-16 Thread Wolfram Sang
On Mon, Apr 11, 2016 at 11:57:20AM -0700, Bartosz Golaszewski wrote: > The only field in struct at24_data that needs locking in the module > code is u8 *writebuf. Other data is already protected by i2c core. > > Rename the lock in at24_data to wrbuf_lock and only use it where > writebuf is accesse

[RESEND PATCH v2 04/13] eeprom: at24: make locking more fine-grained

2016-04-11 Thread Bartosz Golaszewski
The only field in struct at24_data that needs locking in the module code is u8 *writebuf. Other data is already protected by i2c core. Rename the lock in at24_data to wrbuf_lock and only use it where writebuf is accessed. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 28 ++