OSDN Git Service

ARM: davinci: dm365-evm: use device properties for at24 eeprom
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 8 Jan 2019 09:15:30 +0000 (10:15 +0100)
committerSekhar Nori <nsekhar@ti.com>
Thu, 10 Jan 2019 08:27:59 +0000 (13:57 +0530)
commit1e94d710e17d78c70a6e587efa4cd213febbf9f1
treeb2dc7a7b522684147ea9e05879312fa587509601
parent5e4ac9274b0b4e5026e3b8fa3e90ad25e41d487e
ARM: davinci: dm365-evm: 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 <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-dm365-evm.c