mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] Driver Core: drivers/base - drivers/i2c/chips/adm1026.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ff381d2223
commit
74880c063b
12 changed files with 90 additions and 90 deletions
|
|
@ -149,7 +149,7 @@ void eisa_driver_unregister (struct eisa_driver *edrv)
|
|||
driver_unregister (&edrv->driver);
|
||||
}
|
||||
|
||||
static ssize_t eisa_show_sig (struct device *dev, char *buf)
|
||||
static ssize_t eisa_show_sig (struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct eisa_device *edev = to_eisa_device (dev);
|
||||
return sprintf (buf,"%s\n", edev->id.sig);
|
||||
|
|
@ -157,7 +157,7 @@ static ssize_t eisa_show_sig (struct device *dev, char *buf)
|
|||
|
||||
static DEVICE_ATTR(signature, S_IRUGO, eisa_show_sig, NULL);
|
||||
|
||||
static ssize_t eisa_show_state (struct device *dev, char *buf)
|
||||
static ssize_t eisa_show_state (struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct eisa_device *edev = to_eisa_device (dev);
|
||||
return sprintf (buf,"%d\n", edev->state & EISA_CONFIG_ENABLED);
|
||||
|
|
|
|||
Loading…
Reference in a new issue