diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2021-03-04 11:20:23 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-03-08 13:33:39 +0300 |
commit | 87eaede45385e384faf5b15d9c718a951667bdd0 (patch) | |
tree | 272370647c21113f4ded4411ebe1a1fef811a728 /drivers/platform | |
parent | 2b329f5694aec86107931584413c7d2ebc6b548d (diff) | |
download | linux-87eaede45385e384faf5b15d9c718a951667bdd0.tar.xz |
platform/x86: touchscreen_dmi: Handle device properties with software node API
The old device property API (device_add_properties()) is
going to be removed. Replacing the it with the software node
API equivalent, device_create_managed_software_node().
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210304082023.17689-1-heikki.krogerus@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/touchscreen_dmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index c44a6e8dceb8..45203e333f57 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -1355,7 +1355,7 @@ static void ts_dmi_add_props(struct i2c_client *client) if (has_acpi_companion(dev) && !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) { - error = device_add_properties(dev, ts_data->properties); + error = device_create_managed_software_node(dev, ts_data->properties, NULL); if (error) dev_err(dev, "failed to add properties: %d\n", error); } |