emc2305.c (29583dfcd2dd72c766422bd05c16f06c6b1fb356) emc2305.c (deeab9ea40dbaabdf0e2828b5c3da3418ae7dd39)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Hardware monitoring driver for EMC2305 fan controller
4 *
5 * Copyright (C) 2022 Nvidia Technologies Ltd.
6 */
7
8#include <linux/err.h>

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

513 break;
514 default:
515 return -ENODEV;
516 }
517
518 return 0;
519}
520
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Hardware monitoring driver for EMC2305 fan controller
4 *
5 * Copyright (C) 2022 Nvidia Technologies Ltd.
6 */
7
8#include <linux/err.h>

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

513 break;
514 default:
515 return -ENODEV;
516 }
517
518 return 0;
519}
520
521static int emc2305_probe(struct i2c_client *client, const struct i2c_device_id *id)
521static int emc2305_probe(struct i2c_client *client)
522{
523 struct i2c_adapter *adapter = client->adapter;
524 struct device *dev = &client->dev;
525 struct emc2305_data *data;
526 struct emc2305_platform_data *pdata;
527 int vendor, device;
528 int ret;
529 int i;

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

602 emc2305_unset_tz(dev);
603}
604
605static struct i2c_driver emc2305_driver = {
606 .class = I2C_CLASS_HWMON,
607 .driver = {
608 .name = "emc2305",
609 },
522{
523 struct i2c_adapter *adapter = client->adapter;
524 struct device *dev = &client->dev;
525 struct emc2305_data *data;
526 struct emc2305_platform_data *pdata;
527 int vendor, device;
528 int ret;
529 int i;

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

602 emc2305_unset_tz(dev);
603}
604
605static struct i2c_driver emc2305_driver = {
606 .class = I2C_CLASS_HWMON,
607 .driver = {
608 .name = "emc2305",
609 },
610 .probe = emc2305_probe,
610 .probe_new = emc2305_probe,
611 .remove = emc2305_remove,
612 .id_table = emc2305_ids,
613 .address_list = emc2305_normal_i2c,
614};
615
616module_i2c_driver(emc2305_driver);
617
618MODULE_AUTHOR("Nvidia");
619MODULE_DESCRIPTION("Microchip EMC2305 fan controller driver");
620MODULE_LICENSE("GPL");
611 .remove = emc2305_remove,
612 .id_table = emc2305_ids,
613 .address_list = emc2305_normal_i2c,
614};
615
616module_i2c_driver(emc2305_driver);
617
618MODULE_AUTHOR("Nvidia");
619MODULE_DESCRIPTION("Microchip EMC2305 fan controller driver");
620MODULE_LICENSE("GPL");