• Lee Jones's avatar
    mfd: as3711: Repair OOM and 'line over 80 chars' formatting warnings · ae487ae2
    Lee Jones authored
    WARNING: Possible unnecessary 'out of memory' message
    +               if (!pdata) {
    +                       dev_err(&client->dev, "Failed to allocate pdata\n");
    
    WARNING: Possible unnecessary 'out of memory' message
    +       if (!as3711) {
    +               dev_err(&client->dev, "Memory allocation failed\n");
    
    WARNING: line over 80 characters
    +               dev_err(&client->dev, "regmap initialization failed: %d\n", ret);
    
    WARNING: line over 80 characters
    +       /* We can reuse as3711_subdevs[], it will be copied in mfd_add_devices() */
    
    WARNING: line over 80 characters
    +               as3711_subdevs[AS3711_REGULATOR].platform_data = &pdata->regulator;
    
    WARNING: line over 80 characters
    +               as3711_subdevs[AS3711_REGULATOR].pdata_size = sizeof(pdata->regulator);
    
    WARNING: line over 80 characters
    +               as3711_subdevs[AS3711_BACKLIGHT].platform_data = &pdata->backlight;
    
    WARNING: line over 80 characters
    +               as3711_subdevs[AS3711_BACKLIGHT].pdata_size = sizeof(pdata->backlight);
    
    total: 0 errors, 8 warnings, 236 lines checked
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    ae487ae2
as3711.c 5.95 KB