cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

gpiolib-sysfs.h (457B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2
      3#ifndef GPIOLIB_SYSFS_H
      4#define GPIOLIB_SYSFS_H
      5
      6#ifdef CONFIG_GPIO_SYSFS
      7
      8int gpiochip_sysfs_register(struct gpio_device *gdev);
      9void gpiochip_sysfs_unregister(struct gpio_device *gdev);
     10
     11#else
     12
     13static inline int gpiochip_sysfs_register(struct gpio_device *gdev)
     14{
     15	return 0;
     16}
     17
     18static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev)
     19{
     20}
     21
     22#endif /* CONFIG_GPIO_SYSFS */
     23
     24#endif /* GPIOLIB_SYSFS_H */