|
@@ -179,14 +179,14 @@ static inline struct gpio_desc *__must_check
|
|
|
gpiod_get_optional(struct device *dev, const char *con_id,
|
|
|
enum gpiod_flags flags)
|
|
|
{
|
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
static inline struct gpio_desc *__must_check
|
|
|
gpiod_get_index_optional(struct device *dev, const char *con_id,
|
|
|
unsigned int index, enum gpiod_flags flags)
|
|
|
{
|
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
static inline struct gpio_descs *__must_check
|
|
@@ -200,7 +200,7 @@ static inline struct gpio_descs *__must_check
|
|
|
gpiod_get_array_optional(struct device *dev, const char *con_id,
|
|
|
enum gpiod_flags flags)
|
|
|
{
|
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
static inline void gpiod_put(struct gpio_desc *desc)
|
|
@@ -240,14 +240,14 @@ static inline struct gpio_desc *__must_check
|
|
|
devm_gpiod_get_optional(struct device *dev, const char *con_id,
|
|
|
enum gpiod_flags flags)
|
|
|
{
|
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
static inline struct gpio_desc *__must_check
|
|
|
devm_gpiod_get_index_optional(struct device *dev, const char *con_id,
|
|
|
unsigned int index, enum gpiod_flags flags)
|
|
|
{
|
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
static inline struct gpio_descs *__must_check
|
|
@@ -261,7 +261,7 @@ static inline struct gpio_descs *__must_check
|
|
|
devm_gpiod_get_array_optional(struct device *dev, const char *con_id,
|
|
|
enum gpiod_flags flags)
|
|
|
{
|
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
static inline void devm_gpiod_put(struct device *dev, struct gpio_desc *desc)
|