i2c: scmi: Use standard device message logging functions
authorJean Delvare <jdelvare@suse.de>
Thu, 1 Mar 2018 08:04:13 +0000 (09:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 2 Mar 2018 10:18:55 +0000 (11:18 +0100)
commite9d09d97af7c8047959fcaae4217d80c26b2949c
treecae9b7f5553aab26911527674c1dcc9fffc6583e
parent04b6fcaba346e1ce76321ba9b0fd549da4c37ac2
i2c: scmi: Use standard device message logging functions

ACPI_ERROR and ACPI_DEBUG_PRINT are not intended to be used by device
drivers. Use acpi_handle message logging functions instead.

As a nice side effect, it removes the following compiler warnings
which were printed when ACPI debug is disabled:

drivers/i2c/busses/i2c-scmi.c: In function "acpi_smbus_cmi_add_cap":
drivers/i2c/busses/i2c-scmi.c:328:39: warning: suggest braces around empty body in an "else" statement [-Wempty-body]
drivers/i2c/busses/i2c-scmi.c:338:12: warning: suggest braces around empty body in an "else" statement [-Wempty-body]

Suggested-by: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-scmi.c