OSDN Git Service

usb: dwc3: qcom: Constify the software node
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 4 Feb 2021 14:17:09 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Feb 2021 14:42:08 +0000 (15:42 +0100)
commit8dc6e6dd1bee39cd65a232a17d51240fc65a0f4a
treefcecc39c54a0ed8d2fc40fed77a7126d709dac38
parentefc9812edc61761708e6e703a48ed18e1af6bd12
usb: dwc3: qcom: Constify the software node

What platform_device_add_properties() does is it allocates
dynamically a software node that will contain the device
properties supplied to it, and then couples that node with
the device. If the properties are constant, the node can be
constant as well.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210204141711.53775-5-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c