adm1026.c (c3813d6af177fab19e322f3114b1f64fbcf08d71) | adm1026.c (1f86df49ddfd0067cce941187d57b2fd2f749a9e) |
---|---|
1/* 2 adm1026.c - Part of lm_sensors, Linux kernel modules for hardware 3 monitoring 4 Copyright (C) 2002, 2003 Philip Pokorny <ppokorny@penguincomputing.com> 5 Copyright (C) 2004 Justin Thiessen <jthiessen@penguincomputing.com> 6 7 Chip details at: 8 --- 23 unchanged lines hidden (view full) --- 32#include <linux/hwmon-sysfs.h> 33#include <linux/hwmon-vid.h> 34#include <linux/err.h> 35#include <linux/mutex.h> 36 37/* Addresses to scan */ 38static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; 39 | 1/* 2 adm1026.c - Part of lm_sensors, Linux kernel modules for hardware 3 monitoring 4 Copyright (C) 2002, 2003 Philip Pokorny <ppokorny@penguincomputing.com> 5 Copyright (C) 2004 Justin Thiessen <jthiessen@penguincomputing.com> 6 7 Chip details at: 8 --- 23 unchanged lines hidden (view full) --- 32#include <linux/hwmon-sysfs.h> 33#include <linux/hwmon-vid.h> 34#include <linux/err.h> 35#include <linux/mutex.h> 36 37/* Addresses to scan */ 38static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; 39 |
40/* Insmod parameters */ 41I2C_CLIENT_INSMOD_1(adm1026); 42 | |
43static int gpio_input[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 44 -1, -1, -1, -1, -1, -1, -1, -1 }; 45static int gpio_output[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 46 -1, -1, -1, -1, -1, -1, -1, -1 }; 47static int gpio_inverted[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 48 -1, -1, -1, -1, -1, -1, -1, -1 }; 49static int gpio_normal[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 50 -1, -1, -1, -1, -1, -1, -1, -1 }; --- 249 unchanged lines hidden (view full) --- 300static int adm1026_write_value(struct i2c_client *client, u8 reg, int value); 301static void adm1026_print_gpio(struct i2c_client *client); 302static void adm1026_fixup_gpio(struct i2c_client *client); 303static struct adm1026_data *adm1026_update_device(struct device *dev); 304static void adm1026_init_client(struct i2c_client *client); 305 306 307static const struct i2c_device_id adm1026_id[] = { | 40static int gpio_input[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 41 -1, -1, -1, -1, -1, -1, -1, -1 }; 42static int gpio_output[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 43 -1, -1, -1, -1, -1, -1, -1, -1 }; 44static int gpio_inverted[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 45 -1, -1, -1, -1, -1, -1, -1, -1 }; 46static int gpio_normal[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 47 -1, -1, -1, -1, -1, -1, -1, -1 }; --- 249 unchanged lines hidden (view full) --- 297static int adm1026_write_value(struct i2c_client *client, u8 reg, int value); 298static void adm1026_print_gpio(struct i2c_client *client); 299static void adm1026_fixup_gpio(struct i2c_client *client); 300static struct adm1026_data *adm1026_update_device(struct device *dev); 301static void adm1026_init_client(struct i2c_client *client); 302 303 304static const struct i2c_device_id adm1026_id[] = { |
308 { "adm1026", adm1026 }, | 305 { "adm1026", 0 }, |
309 { } 310}; 311MODULE_DEVICE_TABLE(i2c, adm1026_id); 312 313static struct i2c_driver adm1026_driver = { 314 .class = I2C_CLASS_HWMON, 315 .driver = { 316 .name = "adm1026", --- 1467 unchanged lines hidden --- | 306 { } 307}; 308MODULE_DEVICE_TABLE(i2c, adm1026_id); 309 310static struct i2c_driver adm1026_driver = { 311 .class = I2C_CLASS_HWMON, 312 .driver = { 313 .name = "adm1026", --- 1467 unchanged lines hidden --- |