diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2008-07-18 07:41:17 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2008-08-06 09:21:09 -0400 |
commit | 0c06090c9472db0525cb6fe229c3bea33bbbbb3c (patch) | |
tree | b01c21f6ef5649b6f0071dee4a55cb3ba236a7b8 /drivers/watchdog/alim1535_wdt.c | |
parent | 5eb82498e3a6da8a979c48945e3c1a85c10ccc25 (diff) |
[WATCHDOG] Coding style - Indentation - part 2
This brings the watchdog drivers into line with coding style.
This patch takes cares of the indentation as described in chapter 1.
Main changes:
* Re-structure the ioctl switch call for all drivers as follows:
switch (cmd) {
case WDIOC_GETSUPPORT:
case WDIOC_GETSTATUS:
case WDIOC_GETBOOTSTATUS:
case WDIOC_GETTEMP:
case WDIOC_SETOPTIONS:
case WDIOC_KEEPALIVE:
case WDIOC_SETTIMEOUT:
case WDIOC_GETTIMEOUT:
case WDIOC_GETTIMELEFT:
default:
}
This to make the migration from the drivers to the uniform watchdog
device driver easier in the future.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/alim1535_wdt.c')
-rw-r--r-- | drivers/watchdog/alim1535_wdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/watchdog/alim1535_wdt.c b/drivers/watchdog/alim1535_wdt.c index 80e323ddc4ba..dfa11d19043a 100644 --- a/drivers/watchdog/alim1535_wdt.c +++ b/drivers/watchdog/alim1535_wdt.c | |||
@@ -195,9 +195,6 @@ static long ali_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
195 | case WDIOC_GETSTATUS: | 195 | case WDIOC_GETSTATUS: |
196 | case WDIOC_GETBOOTSTATUS: | 196 | case WDIOC_GETBOOTSTATUS: |
197 | return put_user(0, p); | 197 | return put_user(0, p); |
198 | case WDIOC_KEEPALIVE: | ||
199 | ali_keepalive(); | ||
200 | return 0; | ||
201 | case WDIOC_SETOPTIONS: | 198 | case WDIOC_SETOPTIONS: |
202 | { | 199 | { |
203 | int new_options, retval = -EINVAL; | 200 | int new_options, retval = -EINVAL; |
@@ -214,6 +211,9 @@ static long ali_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
214 | } | 211 | } |
215 | return retval; | 212 | return retval; |
216 | } | 213 | } |
214 | case WDIOC_KEEPALIVE: | ||
215 | ali_keepalive(); | ||
216 | return 0; | ||
217 | case WDIOC_SETTIMEOUT: | 217 | case WDIOC_SETTIMEOUT: |
218 | { | 218 | { |
219 | int new_timeout; | 219 | int new_timeout; |