Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8886f4a authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

greybus: i2c: 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 2dad338c
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

struct gb_i2c_device {
	struct gb_connection	*connection;
	u8			version_major;
	u8			version_minor;

	u32			functionality;
	u16			timeout_msec;
@@ -26,9 +24,6 @@ struct gb_i2c_device {
	struct i2c_adapter	adapter;
};

/* Define get_version() routine */
define_get_version(gb_i2c_device, I2C);

/*
 * Map Greybus i2c functionality bits into Linux ones
 */
@@ -277,11 +272,6 @@ static int gb_i2c_device_setup(struct gb_i2c_device *gb_i2c_dev)
{
	int ret;

	/* First thing we need to do is check the version */
	ret = get_version(gb_i2c_dev);
	if (ret)
		return ret;

	/* Assume the functionality never changes, just get it once */
	ret = gb_i2c_functionality_operation(gb_i2c_dev);
	if (ret)