Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: ziirave_wdt: Update checked I2C functionality mask

Update checked I2C functionality mask to reflect all of the SMBus
primitives used by this driver.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Rick Ramstetter <rick@anteaterllc.com>
Cc: linux-watchdog@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190812200906.31344-23-andrew.smirnov@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Andrey Smirnov and committed by
Wim Van Sebroeck
f676ac83 08c913fe

+4 -1
+4 -1
drivers/watchdog/ziirave_wdt.c
··· 602 602 struct ziirave_wdt_data *w_priv; 603 603 int val; 604 604 605 - if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) 605 + if (!i2c_check_functionality(client->adapter, 606 + I2C_FUNC_SMBUS_BYTE | 607 + I2C_FUNC_SMBUS_BYTE_DATA | 608 + I2C_FUNC_SMBUS_WRITE_BLOCK_DATA)) 606 609 return -ENODEV; 607 610 608 611 w_priv = devm_kzalloc(&client->dev, sizeof(*w_priv), GFP_KERNEL);