mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 11:45:01 +07:00
greybus: gpio: Drop get_version support
This is done from a common place now, no need to replicate it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
507d75c4f4
commit
03490fdbe7
@ -33,8 +33,6 @@ struct gb_gpio_line {
|
|||||||
|
|
||||||
struct gb_gpio_controller {
|
struct gb_gpio_controller {
|
||||||
struct gb_connection *connection;
|
struct gb_connection *connection;
|
||||||
u8 version_major;
|
|
||||||
u8 version_minor;
|
|
||||||
u8 line_max; /* max line number */
|
u8 line_max; /* max line number */
|
||||||
struct gb_gpio_line *lines;
|
struct gb_gpio_line *lines;
|
||||||
|
|
||||||
@ -51,9 +49,6 @@ struct gb_gpio_controller {
|
|||||||
container_of(chip, struct gb_gpio_controller, chip)
|
container_of(chip, struct gb_gpio_controller, chip)
|
||||||
#define irq_data_to_gpio_chip(d) (d->domain->host_data)
|
#define irq_data_to_gpio_chip(d) (d->domain->host_data)
|
||||||
|
|
||||||
/* Define get_version() routine */
|
|
||||||
define_get_version(gb_gpio_controller, GPIO);
|
|
||||||
|
|
||||||
static int gb_gpio_line_count_operation(struct gb_gpio_controller *ggc)
|
static int gb_gpio_line_count_operation(struct gb_gpio_controller *ggc)
|
||||||
{
|
{
|
||||||
struct gb_gpio_line_count_response response;
|
struct gb_gpio_line_count_response response;
|
||||||
@ -476,11 +471,6 @@ static int gb_gpio_controller_setup(struct gb_gpio_controller *ggc)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* First thing we need to do is check the version */
|
|
||||||
ret = get_version(ggc);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
/* Now find out how many lines there are */
|
/* Now find out how many lines there are */
|
||||||
ret = gb_gpio_line_count_operation(ggc);
|
ret = gb_gpio_line_count_operation(ggc);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user