Commit 00b6e9ff authored by Charles Keepax's avatar Charles Keepax Committed by Lee Jones

mfd: arizona: Update several pdata members to unsigned

Device tree and ACPI primarily deal with unsigned ints, many of the
pdata members in the Arizona driver are signed ints but are only ever
assigned positive values. Changing these pdata fields to unsigned ints
avoids us having to choose between overly verbose code and Sparse
warnings.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 16f6a0df
...@@ -101,7 +101,7 @@ struct arizona_pdata { ...@@ -101,7 +101,7 @@ struct arizona_pdata {
* useful for systems where and I2S bus with multiple data * useful for systems where and I2S bus with multiple data
* lines is mastered. * lines is mastered.
*/ */
int max_channels_clocked[ARIZONA_MAX_AIF]; unsigned int max_channels_clocked[ARIZONA_MAX_AIF];
/** GPIO5 is used for jack detection */ /** GPIO5 is used for jack detection */
bool jd_gpio5; bool jd_gpio5;
...@@ -125,22 +125,22 @@ struct arizona_pdata { ...@@ -125,22 +125,22 @@ struct arizona_pdata {
unsigned int hpdet_channel; unsigned int hpdet_channel;
/** Extra debounce timeout used during initial mic detection (ms) */ /** Extra debounce timeout used during initial mic detection (ms) */
int micd_detect_debounce; unsigned int micd_detect_debounce;
/** GPIO for mic detection polarity */ /** GPIO for mic detection polarity */
int micd_pol_gpio; int micd_pol_gpio;
/** Mic detect ramp rate */ /** Mic detect ramp rate */
int micd_bias_start_time; unsigned int micd_bias_start_time;
/** Mic detect sample rate */ /** Mic detect sample rate */
int micd_rate; unsigned int micd_rate;
/** Mic detect debounce level */ /** Mic detect debounce level */
int micd_dbtime; unsigned int micd_dbtime;
/** Mic detect timeout (ms) */ /** Mic detect timeout (ms) */
int micd_timeout; unsigned int micd_timeout;
/** Force MICBIAS on for mic detect */ /** Force MICBIAS on for mic detect */
bool micd_force_micbias; bool micd_force_micbias;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment