adt7475.c (c8d430db8eec7d4fd13a6bea27b7086a54eda6da) adt7475.c (0fb09bf715736acfa7419d52f966aea2c0d57e7a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * adt7475 - Thermal sensor driver for the ADT7475 chip and derivatives
4 * Copyright (C) 2007-2008, Advanced Micro Devices, Inc.
5 * Copyright (C) 2008 Jordan Crouse <jordan@cosmicpenguin.net>
6 * Copyright (C) 2008 Hans de Goede <hdegoede@redhat.com>
7 * Copyright (C) 2009 Jean Delvare <jdelvare@suse.de>
8 *

--- 1721 unchanged lines hidden (view full) ---

1730 return ret;
1731
1732 return _adt7475_pwm_properties_parse_args(args, cfg);
1733}
1734
1735static int adt7475_fan_pwm_config(struct i2c_client *client)
1736{
1737 struct adt7475_data *data = i2c_get_clientdata(client);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * adt7475 - Thermal sensor driver for the ADT7475 chip and derivatives
4 * Copyright (C) 2007-2008, Advanced Micro Devices, Inc.
5 * Copyright (C) 2008 Jordan Crouse <jordan@cosmicpenguin.net>
6 * Copyright (C) 2008 Hans de Goede <hdegoede@redhat.com>
7 * Copyright (C) 2009 Jean Delvare <jdelvare@suse.de>
8 *

--- 1721 unchanged lines hidden (view full) ---

1730 return ret;
1731
1732 return _adt7475_pwm_properties_parse_args(args, cfg);
1733}
1734
1735static int adt7475_fan_pwm_config(struct i2c_client *client)
1736{
1737 struct adt7475_data *data = i2c_get_clientdata(client);
1738 struct fwnode_handle *child;
1739 struct adt7475_pwm_config cfg = {};
1740 int ret;
1741
1738 struct adt7475_pwm_config cfg = {};
1739 int ret;
1740
1742 device_for_each_child_node(&client->dev, child) {
1741 device_for_each_child_node_scoped(&client->dev, child) {
1743 if (!fwnode_property_present(child, "pwms"))
1744 continue;
1745
1746 if (is_of_node(child))
1747 ret = adt7475_pwm_properties_parse_reference_args(child, &cfg);
1748 else
1749 ret = adt7475_pwm_properties_parse_args(child, &cfg);
1750

--- 453 unchanged lines hidden ---
1742 if (!fwnode_property_present(child, "pwms"))
1743 continue;
1744
1745 if (is_of_node(child))
1746 ret = adt7475_pwm_properties_parse_reference_args(child, &cfg);
1747 else
1748 ret = adt7475_pwm_properties_parse_args(child, &cfg);
1749

--- 453 unchanged lines hidden ---