adt7475.c (732d2624cf9015988c152cb2758ec807907e7d1a) adt7475.c (39b24cced70fdc336dbc0070f8b3bde61d8513a8)
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 *

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

1891 * The fan is disabled - we don't want to
1892 * support that, so change to manual mode and
1893 * set the duty cycle to 0 instead
1894 */
1895 data->pwm[INPUT][index] = 0;
1896 data->pwm[CONTROL][index] &= ~0xE0;
1897 data->pwm[CONTROL][index] |= (7 << 5);
1898
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 *

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

1891 * The fan is disabled - we don't want to
1892 * support that, so change to manual mode and
1893 * set the duty cycle to 0 instead
1894 */
1895 data->pwm[INPUT][index] = 0;
1896 data->pwm[CONTROL][index] &= ~0xE0;
1897 data->pwm[CONTROL][index] |= (7 << 5);
1898
1899 i2c_smbus_write_byte_data(client, PWM_CONFIG_REG(index),
1899 i2c_smbus_write_byte_data(client, PWM_REG(index),
1900 data->pwm[INPUT][index]);
1901
1902 i2c_smbus_write_byte_data(client, PWM_CONFIG_REG(index),
1903 data->pwm[CONTROL][index]);
1904
1905 data->pwmctl[index] = 1;
1906 } else {
1907 data->pwmctl[index] = 2;

--- 166 unchanged lines hidden ---
1900 data->pwm[INPUT][index]);
1901
1902 i2c_smbus_write_byte_data(client, PWM_CONFIG_REG(index),
1903 data->pwm[CONTROL][index]);
1904
1905 data->pwmctl[index] = 1;
1906 } else {
1907 data->pwmctl[index] = 2;

--- 166 unchanged lines hidden ---