Skip to content

Commit

Permalink
hwmon: (thmc50) Stop using I2C_CLIENT_MODULE_PARM
Browse files Browse the repository at this point in the history
The thmc50 driver is the last user of I2C_CLIENT_MODULE_PARM, and I
would like to get rid of that macro.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Krzysztof Helt <krzysztof.h1@wp.pl>
  • Loading branch information
Jean Delvare committed Dec 9, 2009
1 parent 93ee0a7 commit f95f0b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/hwmon/thmc50.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };

/* Insmod parameters */
I2C_CLIENT_INSMOD_2(thmc50, adm1022);
I2C_CLIENT_MODULE_PARM(adm1022_temp3, "List of adapter,address pairs "

static unsigned short adm1022_temp3[16];
static unsigned int adm1022_temp3_num;
module_param_array(adm1022_temp3, ushort, &adm1022_temp3_num, 0);
MODULE_PARM_DESC(adm1022_temp3, "List of adapter,address pairs "
"to enable 3rd temperature (ADM1022 only)");

/* Many THMC50 constants specified below */
Expand Down

0 comments on commit f95f0b4

Please sign in to comment.