ARM: pxa: stargate2: use device properties for at24 eeprom
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 4 Apr 2018 11:47:06 +0000 (13:47 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 25 May 2018 20:40:17 +0000 (22:40 +0200)
commit5716c20b22f82f85ff39051bcc5207c2060f767d
treeb6df5682055ed620bbefa04213397271fb76e986
parent60cc43fc888428bb2f18f08997432d426a243338
ARM: pxa: stargate2: 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. 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: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/stargate2.c