aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memstick.h
diff options
context:
space:
mode:
authorAlex Dubov <oakad@yahoo.com>2008-07-25 22:45:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-26 15:00:04 -0400
commitb77899985bdfd85a8e5a6e485033a9b4713d2471 (patch)
tree5cf53074b73de6fc27d8d8b0ac78fc8d32c0b9df /include/linux/memstick.h
parent0147600172b4a5d261165d1aa5ef818d84da1557 (diff)
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>
Diffstat (limited to 'include/linux/memstick.h')
-rw-r--r--include/linux/memstick.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/memstick.h b/include/linux/memstick.h
index 37a5cdb0391..2fe599c66d5 100644
--- a/include/linux/memstick.h
+++ b/include/linux/memstick.h
@@ -284,7 +284,7 @@ struct memstick_host {
284 /* Notify the host that some requests are pending. */ 284 /* Notify the host that some requests are pending. */
285 void (*request)(struct memstick_host *host); 285 void (*request)(struct memstick_host *host);
286 /* Set host IO parameters (power, clock, etc). */ 286 /* Set host IO parameters (power, clock, etc). */
287 void (*set_param)(struct memstick_host *host, 287 int (*set_param)(struct memstick_host *host,
288 enum memstick_param param, 288 enum memstick_param param,
289 int value); 289 int value);
290 unsigned long private[0] ____cacheline_aligned; 290 unsigned long private[0] ____cacheline_aligned;