eeprom: at24: Drop at24_cdev_protect()
Instead of exposing a dedictaed .protect() callback, mimic the
behaviour of corresponding driver in Linux and adjust the value of WP
pin in .write() callback as necessary. This is done in order to
convert this driver to NVMEM subsytem.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e015a29 commit 9f56e43083195ad565dc1b81f3412b0f02dda988
@Andrey Smirnov Andrey Smirnov authored on 12 Aug 2019
Sascha Hauer committed on 14 Aug 2019
Showing 1 changed file
View
drivers/eeprom/at24.c