Skip to content

Commit

Permalink
platform/x86: touchscreen_dmi: Handle device properties with software…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Heikki Krogerus authored and Hans de Goede committed Mar 8, 2021
1 parent 2b329f5 commit 87eaede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/touchscreen_dmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 87eaede

Please sign in to comment.