]> git.baikalelectronics.ru Git - kernel.git/commit
of: Add function for generating a DT modalias with a newline
authorRob Herring <robh@kernel.org>
Wed, 22 Mar 2017 14:16:27 +0000 (09:16 -0500)
committerRob Herring <robh@kernel.org>
Wed, 22 Mar 2017 19:56:13 +0000 (14:56 -0500)
commit76fc1747a0ef34e40d521f35acf857c551724685
treee517e4931cce3cec6323e08355d53a97b8de66b3
parent371f2278933dc393e4aab2e75edc803c7c1afa21
of: Add function for generating a DT modalias with a newline

The modalias sysfs attr is lacking a newline for DT aliases on platform
devices. The macio and ibmebus correctly add the newline, but open code it.
Introduce a new function, of_device_modalias(), that fills the buffer with
the modalias including the newline and update users of the old
of_device_get_modalias function.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/ibmebus.c
drivers/base/platform.c
drivers/macintosh/macio_sysfs.c
drivers/of/device.c
drivers/tty/serdev/core.c
drivers/usb/common/ulpi.c
include/linux/of_device.h