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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:49:44 +0000 (07:49 -0800)
commitde1341b7a671bff0f8a654df763191318ef585d7
treefa0abea5e576a428c6d4caa4b4b882a019703ffa
parent2237effd7edc201d9d6bed6bef8ada3cb1499d7b
eeprom: at24: Add support for address-width property

[ Upstream commit a2b3bf4846e5eed62ea6abb096af2c950961033c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/eeprom/at24.c