OSDN Git Service

usb: dwc3: haps: Constify the software node
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 4 Feb 2021 14:17:08 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Feb 2021 14:42:06 +0000 (15:42 +0100)
commitefc9812edc61761708e6e703a48ed18e1af6bd12
tree1f82ae04928bce002da2ba9a86c93c8f1edfc626
parente81dee5554171adf11a45533ab8631ba060a02b7
usb: dwc3: haps: 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. Since that node is always created, it might as
well be constant.

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