[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
@@ -212,7 +212,7 @@ static u8 pcrread[] = {
|
||||
0, 0, 0, 0 /* PCR index */
|
||||
};
|
||||
|
||||
static ssize_t show_pcrs(struct device *dev, char *buf)
|
||||
static ssize_t show_pcrs(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
u8 data[READ_PCR_RESULT_SIZE];
|
||||
ssize_t len;
|
||||
@@ -255,7 +255,7 @@ static u8 readpubek[] = {
|
||||
0, 0, 0, 124, /* TPM_ORD_ReadPubek */
|
||||
};
|
||||
|
||||
static ssize_t show_pubek(struct device *dev, char *buf)
|
||||
static ssize_t show_pubek(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
u8 data[READ_PUBEK_RESULT_SIZE];
|
||||
ssize_t len;
|
||||
@@ -330,7 +330,7 @@ static u8 cap_manufacturer[] = {
|
||||
0, 0, 1, 3
|
||||
};
|
||||
|
||||
static ssize_t show_caps(struct device *dev, char *buf)
|
||||
static ssize_t show_caps(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
u8 data[READ_PUBEK_RESULT_SIZE];
|
||||
ssize_t len;
|
||||
|
Reference in New Issue
Block a user