]> err.no Git - linux-2.6/commit
memstick: allow "set_param" method to return an error code
authorAlex Dubov <oakad@yahoo.com>
Sat, 26 Jul 2008 02:45:00 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:04 +0000 (12:00 -0700)
commitb77899985bdfd85a8e5a6e485033a9b4713d2471
tree5cf53074b73de6fc27d8d8b0ac78fc8d32c0b9df
parent0147600172b4a5d261165d1aa5ef818d84da1557
memstick: allow "set_param" method to return an error code

Some controllers (Jmicron, for instance) can report temporal failure
condition during power-on.  It is desirable to account for this using a
return value of "set_param" device method.  The return value can also be
handy to distinguish between supported and unsupported device parameters
in run time.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/memstick/core/memstick.c
drivers/memstick/host/jmb38x_ms.c
drivers/memstick/host/tifm_ms.c
include/linux/memstick.h