summaryrefslogtreecommitdiffstats
path: root/drivers/eeprom/at24.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/eeprom/at24.c')
-rw-r--r--drivers/eeprom/at24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c
index 050a35aed8..11f23319b6 100644
--- a/drivers/eeprom/at24.c
+++ b/drivers/eeprom/at24.c
@@ -352,7 +352,7 @@ static ssize_t at24_cdev_write(struct cdev *cdev, const void *buf, size_t count,
return at24_write(at24, buf, off, count);
}
-static ssize_t at24_cdev_protect(struct cdev *cdev, size_t count, loff_t offset,
+static int at24_cdev_protect(struct cdev *cdev, size_t count, loff_t offset,
int prot)
{
struct at24_data *at24 = cdev->priv;