pc_nic_drv: implement gpiod_get_optional() as dummy

This commit is contained in:
Christian Helmuth 2023-11-28 13:53:57 +01:00
parent 3b7124bb37
commit a90e0e249e
3 changed files with 8 additions and 16 deletions

View File

@ -407,6 +407,14 @@ struct gpio_desc * devm_gpiod_get_optional(struct device * dev, const char * con
return NULL;
}
#include <linux/gpio/consumer.h>
struct gpio_desc * __must_check gpiod_get_optional(struct device * dev,const char * con_id,enum gpiod_flags flags)
{
lx_emul_trace(__func__);
return NULL;
}
#include <linux/clk.h>
struct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)

View File

@ -384,14 +384,6 @@ int gnet_stats_copy_queue(struct gnet_dump * d,struct gnet_stats_queue __percpu
}
#include <linux/gpio/consumer.h>
struct gpio_desc * __must_check gpiod_get_optional(struct device * dev,const char * con_id,enum gpiod_flags flags)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/gpio/consumer.h>
int gpiod_get_value_cansleep(const struct gpio_desc * desc)

View File

@ -392,14 +392,6 @@ int gnet_stats_copy_queue(struct gnet_dump * d,struct gnet_stats_queue __percpu
}
#include <linux/gpio/consumer.h>
struct gpio_desc * __must_check gpiod_get_optional(struct device * dev,const char * con_id,enum gpiod_flags flags)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/gpio/consumer.h>
int gpiod_get_value_cansleep(const struct gpio_desc * desc)