param: update drivers/char/ipmi/ipmi_watchdog.c to new scheme
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:37 +0000 (23:04 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:37 +0000 (23:04 +0930)
commitc8ba6c52e19c13c2b6fb9ca9e5188799c753914c
treeaf3d9cd6fd8082421013f59f6d436ad63f7fc614
parent886275ce41a9751117367fb387ed171049eb6148
param: update drivers/char/ipmi/ipmi_watchdog.c to new scheme

This is one of the most interesting users of module parameters in the
tree, so weaning it off the old-style non-const module_param_call
scheme is a useful exercise.

I was confused by set_param_int/get_param_int (vs. the normal
param_set_int and param_get_int), so I renamed set_param_int to
set_param_timeout, and re-used param_get_int directly instead of
get_param_int.  I also implemented param_check_wdog_ifnum and
param_check_timeout, so now the ifnum_to_use and timeout/pretimeout
parameters can just use plain module_param().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Corey Minyard <minyard@acm.org>
Cc: openipmi-developer@lists.sourceforge.net
drivers/char/ipmi/ipmi_watchdog.c