Skip to content

Commit

Permalink
hwmon: (w83627ehf) Uninline is_word_sized
Browse files Browse the repository at this point in the history
Helper function is_word_sized has grown too much to be kept inline. It
was OK when there were only 6 word-sized registers but support for new
devices have made the list much longer. The function is also called
from more places than before.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
  • Loading branch information
Jean Delvare authored and Guenter Roeck committed Oct 24, 2011
1 parent 426343e commit 17296fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/w83627ehf.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static const char *const nct6776_temp_label[] = {

#define NUM_REG_TEMP ARRAY_SIZE(NCT6775_REG_TEMP)

static inline int is_word_sized(u16 reg)
static int is_word_sized(u16 reg)
{
return ((((reg & 0xff00) == 0x100
|| (reg & 0xff00) == 0x200)
Expand Down

0 comments on commit 17296fe

Please sign in to comment.