mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
3a3438e594
commit
f9c3d27343
1 changed files with 5 additions and 1 deletions
|
@ -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 = {
|
static struct regulator_consumer_supply fusb302_consumer = {
|
||||||
.supply = "vbus",
|
.supply = "vbus",
|
||||||
/* Must match fusb302 dev_name in intel_cht_int33fe.c */
|
/* 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",
|
.type = "bq24190",
|
||||||
.addr = 0x6b,
|
.addr = 0x6b,
|
||||||
.dev_name = "bq24190",
|
.dev_name = "bq24190",
|
||||||
.properties = bq24190_props,
|
.swnode = &bq24190_node,
|
||||||
.platform_data = &bq24190_pdata,
|
.platform_data = &bq24190_pdata,
|
||||||
};
|
};
|
||||||
int ret, reg, irq;
|
int ret, reg, irq;
|
||||||
|
|
Loading…
Reference in a new issue