ds2482.c (ad9c36be1f78f2990310cdcf902eba64cd2b2cf3) | ds2482.c (921e0f2fb09d8decfa8f19eae01f0b68e322363e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * ds2482.c - provides i2c to w1-master bridge(s) 4 * Copyright (C) 2005 Ben Gardner <bgardner@wabtec.com> 5 * 6 * The DS2482 is a sensor chip made by Dallas Semiconductor (Maxim). 7 * It is a I2C to 1-wire bridge. 8 * There are two variations: -100 and -800, which have 1 or 8 1-wire ports. --- 22 unchanged lines hidden (view full) --- 31 */ 32static int ds2482_active_pullup = 1; 33module_param_named(active_pullup, ds2482_active_pullup, int, 0644); 34MODULE_PARM_DESC(active_pullup, "Active pullup (apply to all buses): " \ 35 "0-disable, 1-enable (default)"); 36 37/* extra configurations - e.g. 1WS */ 38static int extra_config; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * ds2482.c - provides i2c to w1-master bridge(s) 4 * Copyright (C) 2005 Ben Gardner <bgardner@wabtec.com> 5 * 6 * The DS2482 is a sensor chip made by Dallas Semiconductor (Maxim). 7 * It is a I2C to 1-wire bridge. 8 * There are two variations: -100 and -800, which have 1 or 8 1-wire ports. --- 22 unchanged lines hidden (view full) --- 31 */ 32static int ds2482_active_pullup = 1; 33module_param_named(active_pullup, ds2482_active_pullup, int, 0644); 34MODULE_PARM_DESC(active_pullup, "Active pullup (apply to all buses): " \ 35 "0-disable, 1-enable (default)"); 36 37/* extra configurations - e.g. 1WS */ 38static int extra_config; |
39module_param(extra_config, int, S_IRUGO | S_IWUSR); | 39module_param(extra_config, int, 0644); |
40MODULE_PARM_DESC(extra_config, "Extra Configuration settings 1=APU,2=PPM,3=SPU,8=1WS"); 41 42/* 43 * The DS2482 registers - there are 3 registers that are addressed by a read 44 * pointer. The read pointer is set by the last command executed. 45 * 46 * To read the data, issue a register read for any address 47 */ --- 516 unchanged lines hidden --- | 40MODULE_PARM_DESC(extra_config, "Extra Configuration settings 1=APU,2=PPM,3=SPU,8=1WS"); 41 42/* 43 * The DS2482 registers - there are 3 registers that are addressed by a read 44 * pointer. The read pointer is set by the last command executed. 45 * 46 * To read the data, issue a register read for any address 47 */ --- 516 unchanged lines hidden --- |