You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] i2c: drop empty i2c_driver.command implementations
Given that implementing i2c_driver.command is optional, there is no point in an empty implementation thereof. Signed-off-by: Laurent Riffard <laurent.riffard@free.fr> Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Michael Geng <linux@MichaelGeng.de> Cc: Petr Vandrovec <vandrove@vc.cvut.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
04b4b8434a
commit
d564baee29
@@ -1288,10 +1288,6 @@ static int maven_detach_client(struct i2c_client* client) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int maven_command(struct i2c_client* client, unsigned int cmd, void* arg) {
|
||||
return -ENOIOCTLCMD; /* or -EINVAL, depends on who will call this */
|
||||
}
|
||||
|
||||
static struct i2c_driver maven_driver={
|
||||
.driver = {
|
||||
.name = "maven",
|
||||
@@ -1299,7 +1295,6 @@ static struct i2c_driver maven_driver={
|
||||
.id = I2C_DRIVERID_MGATVO,
|
||||
.attach_adapter = maven_attach_adapter,
|
||||
.detach_client = maven_detach_client,
|
||||
.command = maven_command,
|
||||
};
|
||||
|
||||
/* ************************** */
|
||||
|
||||
Reference in New Issue
Block a user