drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / arch / arm / mach-s3c / gpio-cfg-helpers.h
blob9d6f6319ae3e368fdb7f60d34efe33e7e876af72
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * http://armlinux.simtec.co.uk/
6 * Ben Dooks <ben@simtec.co.uk>
8 * Samsung Platform - GPIO pin configuration helper definitions
9 */
11 /* This is meant for core cpu support, machine or other driver files
12 * should not be including this header.
15 #ifndef __PLAT_GPIO_CFG_HELPERS_H
16 #define __PLAT_GPIO_CFG_HELPERS_H __FILE__
18 /* As a note, all gpio configuration functions are entered exclusively, either
19 * with the relevant lock held or the system prevented from doing anything else
20 * by disabling interrupts.
23 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip,
24 unsigned int off, unsigned int config)
26 return (chip->config->set_config)(chip, off, config);
29 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip,
30 unsigned int off, samsung_gpio_pull_t pull)
32 return (chip->config->set_pull)(chip, off, pull);
35 #endif /* __PLAT_GPIO_CFG_HELPERS_H */