diff options
author | Srikant Patnaik | 2015-01-11 20:10:08 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 20:10:08 +0530 |
commit | 6be9593ee4352c19377a47475fdcd8473897ac42 (patch) | |
tree | b85d6e3d961374d41c446318e2c2598272a8e86c /drivers/video/wmt/sw_i2c.h | |
parent | ddd6804ba90290b66ebff05b99752fcdd75fec45 (diff) | |
download | FOSSEE-netbook-kernel-source-6be9593ee4352c19377a47475fdcd8473897ac42.tar.gz FOSSEE-netbook-kernel-source-6be9593ee4352c19377a47475fdcd8473897ac42.tar.bz2 FOSSEE-netbook-kernel-source-6be9593ee4352c19377a47475fdcd8473897ac42.zip |
Fix white screen issue during bootup
Signed-off-by: Manish Patel <manish.patel@xzadium.com>
Diffstat (limited to 'drivers/video/wmt/sw_i2c.h')
-rw-r--r--[-rwxr-xr-x] | drivers/video/wmt/sw_i2c.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/video/wmt/sw_i2c.h b/drivers/video/wmt/sw_i2c.h index 593fd08f..ab4b8d4c 100755..100644 --- a/drivers/video/wmt/sw_i2c.h +++ b/drivers/video/wmt/sw_i2c.h @@ -2,7 +2,7 @@ * linux/drivers/video/wmt/sw_i2c.h * WonderMedia video post processor (VPP) driver * - * Copyright c 2014 WonderMedia Technologies, Inc. + * Copyright c 2013 WonderMedia Technologies, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ #ifndef _SWI2C_H_ #define _SWI2C_H_ -struct swi2c_reg_s { +typedef struct { unsigned int bit_mask; unsigned int gpio_en; unsigned int out_en; @@ -32,17 +32,15 @@ struct swi2c_reg_s { unsigned int data_out; unsigned int pull_en_bit_mask; unsigned int pull_en; -}; -#define swi2c_reg_t struct swi2c_reg_s +} swi2c_reg_t; -struct swi2c_handle_s { - struct swi2c_reg_s *scl_reg; - struct swi2c_reg_s *sda_reg; -}; -#define swi2c_handle_t struct swi2c_handle_s +typedef struct { + swi2c_reg_t *scl_reg; + swi2c_reg_t *sda_reg; +} swi2c_handle_t; int wmt_swi2c_read( - struct swi2c_handle_s *handle, + swi2c_handle_t *handle, char addr, char index, char *buf, @@ -50,14 +48,14 @@ int wmt_swi2c_read( ); int wmt_swi2c_write( - struct swi2c_handle_s *handle, + swi2c_handle_t *handle, char addr, char index, char *buf, int cnt ); -int wmt_swi2c_check(struct swi2c_handle_s *handle); +int wmt_swi2c_check(swi2c_handle_t *handle); #endif |