mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
missing argument in bin_attribute ->read()/->write()
Fallout from commit 91a6902958 ('sysfs:
add parameter "struct bin_attribute *" ...')
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ececfdee1c
commit
05bd711ea2
3 changed files with 11 additions and 11 deletions
|
|
@ -140,8 +140,8 @@ static const struct attribute_group ds1682_group = {
|
|||
/*
|
||||
* User data attribute
|
||||
*/
|
||||
static ssize_t ds1682_eeprom_read(struct kobject *kobj, char *buf, loff_t off,
|
||||
size_t count)
|
||||
static ssize_t ds1682_eeprom_read(struct kobject *kobj, struct bin_attribute *attr,
|
||||
char *buf, loff_t off, size_t count)
|
||||
{
|
||||
struct i2c_client *client = kobj_to_i2c_client(kobj);
|
||||
int rc;
|
||||
|
|
@ -163,8 +163,8 @@ static ssize_t ds1682_eeprom_read(struct kobject *kobj, char *buf, loff_t off,
|
|||
return count;
|
||||
}
|
||||
|
||||
static ssize_t ds1682_eeprom_write(struct kobject *kobj, char *buf, loff_t off,
|
||||
size_t count)
|
||||
static ssize_t ds1682_eeprom_write(struct kobject *kobj, struct bin_attribute *attr,
|
||||
char *buf, loff_t off, size_t count)
|
||||
{
|
||||
struct i2c_client *client = kobj_to_i2c_client(kobj);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue