Re: [PATCH v4 3/3] gpio: lp873x: Add support for General Purpose Outputs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Keerthy,

sorry ignore my last two comments in previous mail.

On Wed, Jun 29, 2016 at 4:13 PM, Manish Badarkhe
<badarkhe.manish@xxxxxxxxx> wrote:
> Hi Keerthy
>
> Some minor comment
>
>> +static int lp873x_gpio_direction_output(struct gpio_chip *chip,
>> +                                       unsigned int offset, int value)
>> +{
>> +       struct lp873x_gpio *gpio = gpiochip_get_data(chip);
>> +
>> +       /* Set the initial value */
>> +       regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL,
>> +                          BIT(offset * 4), value ? BIT(offset * 4) : 0);
>> +
>> +       return 0;
>> +}

 Error needs to be return, this function always return 0.

 Regards
 Manish Badarkhe
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux