diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-05-03 14:14:56 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-05-11 15:15:54 -0700 |
commit | d1bf1333593f1d19740b2619377abf760b138cbe (patch) | |
tree | eecb1bcf44540a0d75a24eeec8eed6644bef1692 /include | |
parent | dea4648595c273fb017ccafaabc7cbcfcc546bf7 (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
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>
Diffstat (limited to 'include')
-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__ */ |