diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-05-03 14:14:56 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:56 -0800 |
commit | ed750ec67641a759ab95b7b47816526532ae17ae (patch) | |
tree | 0586e1aa871c4808735b59c2318a55128036ec3d /include/media | |
parent | 3edf8a150ae191565553a4dbf9afa2ca94bc5340 (diff) |
media: sh532u: Adding board related init/deinit
When device sh532u is open, it calls board related initialization
and de- initialization function.
In the board related functions, the client can initialize the required
signal, power on/off the device etc.
bug 802264
Original-Change-Id: Ie69a6e70c5d104489d248bef538e89263208ee54
Reviewed-on: http://git-master/r/30169
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Danielle Sun <dsun@nvidia.com>
Tested-by: Danielle Sun <dsun@nvidia.com>
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Rebase-Id: R026fbf2cd53dfd839875c3edb97aca5b037120c4
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/sh532u.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/sh532u.h b/include/media/sh532u.h index 9fba8e084e29..5c4ffd9d42f8 100644 --- a/include/media/sh532u.h +++ b/include/media/sh532u.h @@ -43,6 +43,11 @@ struct sh532u_config { s16 limit_high; }; +struct sh532u_platform_data { + void *context_data; + int (*board_init)(void *context_data); + int (*board_deinit)(void *context_data); +}; /* Register Definition : Sany Driver IC */ /* EEPROM addresses */ #define addrHallOffset 0x10 @@ -302,7 +307,9 @@ P0 P1 #define END_ADDR 0x01BF /*Macro define*/ +#if !defined(abs) #define abs(a) (((a) > 0) ? (a) : -(a)) +#endif #endif /* __SH532U_H__ */ |