mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
eeprom: Warn that the driver is deprecated
Deprecating the driver in Kconfig is one thing, but we also need to let the users themselves know. Log a warning each time a device is bound to the deprecated eeprom driver. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20191002104844.1dc4d8f3@endymion Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
780ee709bd
commit
3079b54aa9
1 changed files with 4 additions and 0 deletions
|
@ -175,6 +175,10 @@ static int eeprom_probe(struct i2c_client *client,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Let the users know they are using deprecated driver */
|
||||||
|
dev_notice(&client->dev,
|
||||||
|
"eeprom driver is deprecated, please use at24 instead\n");
|
||||||
|
|
||||||
/* create the sysfs eeprom file */
|
/* create the sysfs eeprom file */
|
||||||
return sysfs_create_bin_file(&client->dev.kobj, &eeprom_attr);
|
return sysfs_create_bin_file(&client->dev.kobj, &eeprom_attr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue