mfd: rave-sp: Convert print_hex_dump() to print_hex_dump_debug()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 8 Mar 2018 17:37:55 +0000 (09:37 -0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
Convert print_hex_dump() to print_hex_dump_debug() to be able to
leverage CONFIG_DYNAMIC_DEBUG.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rave-sp.c

index 6531329f798653b58e99f48bf77ff65128542840..b70416050a81aa7b3c4d0a14e49a88a6e8c24083 100644 (file)
@@ -309,8 +309,8 @@ static int rave_sp_write(struct rave_sp *sp, const u8 *data, u8 data_size)
 
        length = dest - frame;
 
-       print_hex_dump(KERN_DEBUG, "rave-sp tx: ", DUMP_PREFIX_NONE,
-                      16, 1, frame, length, false);
+       print_hex_dump_debug("rave-sp tx: ", DUMP_PREFIX_NONE,
+                            16, 1, frame, length, false);
 
        return serdev_device_write(sp->serdev, frame, length, HZ);
 }
@@ -451,8 +451,8 @@ static void rave_sp_receive_frame(struct rave_sp *sp,
        struct device *dev           = &sp->serdev->dev;
        u8 crc_calculated[checksum_length];
 
-       print_hex_dump(KERN_DEBUG, "rave-sp rx: ", DUMP_PREFIX_NONE,
-                      16, 1, data, length, false);
+       print_hex_dump_debug("rave-sp rx: ", DUMP_PREFIX_NONE,
+                            16, 1, data, length, false);
 
        if (unlikely(length <= checksum_length)) {
                dev_warn(dev, "Dropping short frame\n");