Re: [PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-26 Thread Srinivas Kandagatla
On 24/03/15 22:53, Mark Brown wrote: On Tue, Mar 24, 2015 at 10:30:08PM +, Srinivas Kandagatla wrote: +static ssize_t bin_attr_eeprom_write(struct file *filp, struct kobject *kobj, +struct bin_attribute *attr, +char

Re: [PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-26 Thread Srinivas Kandagatla
On 24/03/15 22:53, Mark Brown wrote: On Tue, Mar 24, 2015 at 10:30:08PM +, Srinivas Kandagatla wrote: +static ssize_t bin_attr_eeprom_write(struct file *filp, struct kobject *kobj, +struct bin_attribute *attr, +char

Re: [PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-24 Thread Mark Brown
On Tue, Mar 24, 2015 at 10:30:08PM +, Srinivas Kandagatla wrote: > +static ssize_t bin_attr_eeprom_write(struct file *filp, struct kobject *kobj, > + struct bin_attribute *attr, > + char *buf, loff_t offset, size_t count) > +{

[PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-24 Thread Srinivas Kandagatla
This patch adds just providers part of the framework just to enable easy review. Up until now, EEPROM drivers were stored in drivers/misc, where they all had to duplicate pretty much the same code to register a sysfs file, allow in-kernel users to access the content of the devices they were

Re: [PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-24 Thread Mark Brown
On Tue, Mar 24, 2015 at 10:30:08PM +, Srinivas Kandagatla wrote: +static ssize_t bin_attr_eeprom_write(struct file *filp, struct kobject *kobj, + struct bin_attribute *attr, + char *buf, loff_t offset, size_t count) +{ +

[PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-24 Thread Srinivas Kandagatla
This patch adds just providers part of the framework just to enable easy review. Up until now, EEPROM drivers were stored in drivers/misc, where they all had to duplicate pretty much the same code to register a sysfs file, allow in-kernel users to access the content of the devices they were