• Lee Jones's avatar
    mfd: ab8500-gpadc: Squash a whole bunch of Checkpatch warnings and one error · df36442c
    Lee Jones authored
    WARNING: line over 80 characters
    +#define ADC_CH_IBAT_MIN                        (-6000) /* mA range measured by ADC for ib
    t*/
    
    WARNING: line over 80 characters
    +#define ADC_CH_IBAT_MIN_V              (-60)   /* mV range measured by ADC for ibat*/
    
    WARNING: suspect code indent for conditional statements (16, 20)
    +               if (!strcmp(name, dev_name(gpadc->dev)))
    +                   return gpadc;
    
    WARNING: suspect code indent for conditional statements (0, 16)
    +if (ad_value < 0) {
    +               dev_err(gpadc->dev, "GPADC raw value failed ch: %d\n",
    
    WARNING: quoted string split across lines
    +               dev_err(gpadc->dev, "GPADC to voltage conversion failed ch:"
    +                       " %d AD: 0x%x\n", channel, ad_value);
    
    WARNING: Missing a blank line after declarations
    +       int raw_data;
    +       raw_data = ab8500_gpadc_double_read_raw(gpadc, channel,
    
    WARNING: msleep < 20ms can sleep for up to 20ms; see Document...
    df36442c
ab8500-gpadc.c 31 KB