Commit 2e93d02c authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: pwm: Drop get_version support

This is done from a common place now, no need to replicate it.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 47d3cfbb
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
struct gb_pwm_chip { struct gb_pwm_chip {
struct gb_connection *connection; struct gb_connection *connection;
u8 version_major;
u8 version_minor;
u8 pwm_max; /* max pwm number */ u8 pwm_max; /* max pwm number */
struct pwm_chip chip; struct pwm_chip chip;
...@@ -27,9 +25,6 @@ struct gb_pwm_chip { ...@@ -27,9 +25,6 @@ struct gb_pwm_chip {
container_of(chip, struct gb_pwm_chip, chip) container_of(chip, struct gb_pwm_chip, chip)
/* Define get_version() routine */
define_get_version(gb_pwm_chip, PWM);
static int gb_pwm_count_operation(struct gb_pwm_chip *pwmc) static int gb_pwm_count_operation(struct gb_pwm_chip *pwmc)
{ {
struct gb_pwm_count_response response; struct gb_pwm_count_response response;
...@@ -194,11 +189,6 @@ static int gb_pwm_connection_init(struct gb_connection *connection) ...@@ -194,11 +189,6 @@ static int gb_pwm_connection_init(struct gb_connection *connection)
pwmc->connection = connection; pwmc->connection = connection;
connection->private = pwmc; connection->private = pwmc;
/* Check for compatible protocol version */
ret = get_version(pwmc);
if (ret)
goto out_err;
/* Query number of pwms present */ /* Query number of pwms present */
ret = gb_pwm_count_operation(pwmc); ret = gb_pwm_count_operation(pwmc);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment