]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: imx: pcm037: use device properties for at24 eeprom
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 4 Apr 2018 13:16:27 +0000 (15:16 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 18 Apr 2018 03:18:30 +0000 (11:18 +0800)
commit3b8b2e1e02ce78adbdaf1f0f9f2f8a0a39b743c8
treef80254e3edb516841506fa4902071f4e2a8aed06
parent6a7836ba7fb4abf6daa2ae7742220811d06c62c5
ARM: imx: pcm037: use device properties for at24 eeprom

We want to work towards phasing out the at24_platform_data structure.
There are few users and its contents can be represented using generic
device properties. Using device properties only will allow us to
significantly simplify the at24 configuration code.

Remove the at24_platform_data structure and replace it with an array
of property entries. Specify the exact model instead of the "at24"
wildcard and drop the byte_len/size property, as the model name already
implies the EEPROM's size.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-pcm037.c