eeprom: at24: Add support for address-width property
authorAlan Chiang <alanx.chiang@intel.com>
Wed, 25 Jul 2018 03:20:22 +0000 (11:20 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 25 Jul 2018 07:17:57 +0000 (09:17 +0200)
commita2b3bf4846e5eed62ea6abb096af2c950961033c
treebd9b73b3736c24323b317ea107dc2a8d4ff4af9d
parent21d04054501fb27b56e995b54ac74e39aee79a46
eeprom: at24: Add support for address-width property

Provide a flexible way to determine the addressing bits of eeprom.
Pass the addressing bits to driver through address-width property.

Signed-off-by: Alan Chiang <alanx.chiang@intel.com>
Signed-off-by: Andy Yeh <andy.yeh@intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/misc/eeprom/at24.c