Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f20a5ea8 authored by Philippe Rétornaz's avatar Philippe Rétornaz Committed by Samuel Ortiz
Browse files

mfd: Implicitly register mc13xxx led subdevice



A led subdevice is registered now iff the corresponding platform data is
available. Without platform data the device isn't usable so this is a
sound check.

Signed-off-by: default avatarPhilippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 4a2a7343
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -759,7 +759,7 @@ static int mc13xxx_probe(struct spi_device *spi)
	if (pdata->flags & MC13XXX_USE_TOUCHSCREEN)
		mc13xxx_add_subdevice(mc13xxx, "%s-ts");

	if (pdata->flags & MC13XXX_USE_LED)
	if (pdata->leds)
		mc13xxx_add_subdevice_pdata(mc13xxx, "%s-led",
				pdata->leds, sizeof(*pdata->leds));