diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-08 19:09:04 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-20 14:47:45 +0300 |
commit | fa0c9cb11bad91ee1d2d6c6fd6a6dcbbb36858fd (patch) | |
tree | 1877d5f292d790e91b2b22145f6519076102ad43 /drivers/platform/x86/intel_cht_int33fe_typec.c | |
parent | 140355e5db8be765c39a97fb6817afa1a2c25909 (diff) | |
download | linux-fa0c9cb11bad91ee1d2d6c6fd6a6dcbbb36858fd.tar.bz2 |
platform/x86: intel_cht_int33fe: Convert to use set_secondary_fwnode()
In one place we open coded set_secondary_fwnode().
Let's replace it with a helper.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel_cht_int33fe_typec.c')
-rw-r--r-- | drivers/platform/x86/intel_cht_int33fe_typec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel_cht_int33fe_typec.c b/drivers/platform/x86/intel_cht_int33fe_typec.c index 0f547d35c90d..904e75d39953 100644 --- a/drivers/platform/x86/intel_cht_int33fe_typec.c +++ b/drivers/platform/x86/intel_cht_int33fe_typec.c @@ -239,8 +239,7 @@ cht_int33fe_register_max17047(struct device *dev, struct cht_int33fe_data *data) i2c_for_each_dev(&max17047, cht_int33fe_check_for_max17047); if (max17047) { /* Pre-existing i2c-client for the max17047, add device-props */ - fwnode->secondary = ERR_PTR(-ENODEV); - max17047->dev.fwnode->secondary = fwnode; + set_secondary_fwnode(&max17047->dev, fwnode); /* And re-probe to get the new device-props applied. */ ret = device_reprobe(&max17047->dev); if (ret) |