diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-09-27 22:10:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:23 -0500 |
commit | 3a6b49fef6cd18ce3de9de3db12bfbeacf39f9e9 (patch) | |
tree | 9f72de84187369b5f73f66f6c36436cbf01ea111 /drivers/media/common/tuners/tda18271-priv.h | |
parent | 3986bd116f3c53d695aef1781e14b6c5670d4cdd (diff) |
V4L/DVB (13111): tda18271: more signedness fixes
Convert tda18271_rf_tracking_filter_cal.rf_[ab][12] from int to s32.
Convert tda18271_priv.tm_rfcal from unsigned int to u8.
Cast subtractions between u32 values as s32.
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tda18271-priv.h')
-rw-r--r-- | drivers/media/common/tuners/tda18271-priv.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/common/tuners/tda18271-priv.h b/drivers/media/common/tuners/tda18271-priv.h index 2bee229acd91..74075be4dea3 100644 --- a/drivers/media/common/tuners/tda18271-priv.h +++ b/drivers/media/common/tuners/tda18271-priv.h | |||
@@ -80,10 +80,10 @@ struct tda18271_rf_tracking_filter_cal { | |||
80 | u32 rf1; | 80 | u32 rf1; |
81 | u32 rf2; | 81 | u32 rf2; |
82 | u32 rf3; | 82 | u32 rf3; |
83 | int rf_a1; | 83 | s32 rf_a1; |
84 | int rf_b1; | 84 | s32 rf_b1; |
85 | int rf_a2; | 85 | s32 rf_a2; |
86 | int rf_b2; | 86 | s32 rf_b2; |
87 | }; | 87 | }; |
88 | 88 | ||
89 | enum tda18271_pll { | 89 | enum tda18271_pll { |
@@ -111,10 +111,11 @@ struct tda18271_priv { | |||
111 | enum tda18271_output_options output_opt; | 111 | enum tda18271_output_options output_opt; |
112 | 112 | ||
113 | unsigned int config; /* interface to saa713x / tda829x */ | 113 | unsigned int config; /* interface to saa713x / tda829x */ |
114 | unsigned int tm_rfcal; | ||
115 | unsigned int cal_initialized:1; | 114 | unsigned int cal_initialized:1; |
116 | unsigned int small_i2c:1; | 115 | unsigned int small_i2c:1; |
117 | 116 | ||
117 | u8 tm_rfcal; | ||
118 | |||
118 | struct tda18271_map_layout *maps; | 119 | struct tda18271_map_layout *maps; |
119 | struct tda18271_std_map std; | 120 | struct tda18271_std_map std; |
120 | struct tda18271_rf_tracking_filter_cal rf_cal_state[8]; | 121 | struct tda18271_rf_tracking_filter_cal rf_cal_state[8]; |