diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2021-03-29 13:50:42 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-04-10 22:43:01 +0300 |
commit | f9c3d2734343c934f2e7270c0d47a4c88e10b847 (patch) | |
tree | 3f7afa1bc282c0b43ae06665389aa85d9296804a /drivers/i2c/busses/i2c-cht-wc.c | |
parent | 3a3438e594bf8b2d8fcfd11f3aa2a93e215b92b7 (diff) | |
download | linux-f9c3d2734343c934f2e7270c0d47a4c88e10b847.tar.xz |
i2c: cht-wc: Constify the software node
Additional device properties are always just a part of a
software fwnode. If the device properties are constant, the
software node can also be constant.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-cht-wc.c')
-rw-r--r-- | drivers/i2c/busses/i2c-cht-wc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-cht-wc.c b/drivers/i2c/busses/i2c-cht-wc.c index f80d79e973cd..08f491ea21ac 100644 --- a/drivers/i2c/busses/i2c-cht-wc.c +++ b/drivers/i2c/busses/i2c-cht-wc.c @@ -280,6 +280,10 @@ static const struct property_entry bq24190_props[] = { { } }; +static const struct software_node bq24190_node = { + .properties = bq24190_props, +}; + static struct regulator_consumer_supply fusb302_consumer = { .supply = "vbus", /* Must match fusb302 dev_name in intel_cht_int33fe.c */ @@ -308,7 +312,7 @@ static int cht_wc_i2c_adap_i2c_probe(struct platform_device *pdev) .type = "bq24190", .addr = 0x6b, .dev_name = "bq24190", - .properties = bq24190_props, + .swnode = &bq24190_node, .platform_data = &bq24190_pdata, }; int ret, reg, irq; |