On Thu, Nov 19, 2015 at 06:52:57PM +0200, Vladimir Zapolskiy wrote: > On 19.11.2015 16:18, Andrew Lunn wrote: > >>> #ifdef CONFIG_OF > >>> +static void select_assert(void *context) > >>> +{ > >>> + struct eeprom_93xx46_dev *edev = context; > >>> + > >>> + gpiod_set_value_cansleep(gpio_to_desc(edev->pdata->select_gpio), 1); > >> > >> I would suggest to use gpio_set_value() > > > > Could you explain why? > > > > Maybe this gpio is on an SPI GPIO expander? > > My point is that gpio_*() interface, gpio_set_value() or > gpio_set_value_cansleep(), might be preferred is this particular case. Ah, O.K, yes, avoid the gpio_to_desc() call. Agreed. Andrew -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html