static void mc33880_set(struct gpio_chip *chip, unsigned offset, int value) { struct mc33880 *mc = container_of(chip, struct mc33880, chip); mutex_lock(&mc->lock); __mc33880_set(mc, offset, value); mutex_unlock(&mc->lock); }
static void mc33880_set(struct gpio_chip *chip, unsigned offset, int value) { struct mc33880 *mc = gpiochip_get_data(chip); mutex_lock(&mc->lock); __mc33880_set(mc, offset, value); mutex_unlock(&mc->lock); }