[PATCH] Driver Core: drivers/base - drivers/i2c/chips/adm1026.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ff381d2223
commit
74880c063b
@@ -24,12 +24,12 @@
|
||||
* low-power state.
|
||||
*/
|
||||
|
||||
static ssize_t state_show(struct device * dev, char * buf)
|
||||
static ssize_t state_show(struct device * dev, struct device_attribute *attr, char * buf)
|
||||
{
|
||||
return sprintf(buf, "%u\n", dev->power.power_state);
|
||||
}
|
||||
|
||||
static ssize_t state_store(struct device * dev, const char * buf, size_t n)
|
||||
static ssize_t state_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t n)
|
||||
{
|
||||
u32 state;
|
||||
char * rest;
|
||||
|
Reference in New Issue
Block a user