mtd: rawnand: davinci: store the core chipselect number in platform data
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Apr 2018 08:24:42 +0000 (10:24 +0200)
committerSekhar Nori <nsekhar@ti.com>
Wed, 2 May 2018 09:28:30 +0000 (14:58 +0530)
commitbde1a3d84634f98151e3f748ab90865e9f544b10
tree5ea16a8da56be78b3d5a2c3f5f1fedd4030b3cec
parent60cc43fc888428bb2f18f08997432d426a243338
mtd: rawnand: davinci: store the core chipselect number in platform data

We have the 'ti,davinci-chipselect' property in the device tree, but
when using platform data the driver silently uses the id field of
struct platform_device as the chipselect. This is confusing and we
almost broke the nand support again recently after converting the
platform to common clock framework (which changed the device id in the
clock lookup - the problem is gone now that we no longer acquire the
clock in the nand driver.

This patch adds a new field - core_chipsel - to the platform_data.
Subsequent patches will convert the platforms to using this new field.

Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
include/linux/platform_data/mtd-davinci.h