[RFC PATCH] drivers: mfd: iei_wt61p803_puzzle_checksum() can be static
From: kernel test robot
Date: Sat Sep 26 2020 - 15:17:20 EST
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
iei-wt61p803-puzzle.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/mfd/iei-wt61p803-puzzle.c b/drivers/mfd/iei-wt61p803-puzzle.c
index 5cba010ac9b963..f803222fc8e56f 100644
--- a/drivers/mfd/iei-wt61p803-puzzle.c
+++ b/drivers/mfd/iei-wt61p803-puzzle.c
@@ -118,7 +118,7 @@ struct iei_wt61p803_puzzle {
struct mutex lock;
};
-unsigned char iei_wt61p803_puzzle_checksum(unsigned char *buf, size_t len)
+static unsigned char iei_wt61p803_puzzle_checksum(unsigned char *buf, size_t len)
{
unsigned char checksum = 0;
unsigned int i;
@@ -302,7 +302,7 @@ int iei_wt61p803_puzzle_write_command(struct iei_wt61p803_puzzle *mcu,
}
EXPORT_SYMBOL_GPL(iei_wt61p803_puzzle_write_command);
-int iei_wt61p803_puzzle_buzzer(struct iei_wt61p803_puzzle *mcu, bool long_beep)
+static int iei_wt61p803_puzzle_buzzer(struct iei_wt61p803_puzzle *mcu, bool long_beep)
{
unsigned char buzzer_short_cmd[4] = {
IEI_WT61P803_PUZZLE_CMD_HEADER_START,
@@ -341,7 +341,7 @@ int iei_wt61p803_puzzle_buzzer(struct iei_wt61p803_puzzle *mcu, bool long_beep)
return ret;
}
-int iei_wt61p803_puzzle_get_version(struct iei_wt61p803_puzzle *mcu)
+static int iei_wt61p803_puzzle_get_version(struct iei_wt61p803_puzzle *mcu)
{
struct device *dev = &mcu->serdev->dev;
unsigned char version_cmd[3] = {
@@ -420,7 +420,7 @@ int iei_wt61p803_puzzle_get_version(struct iei_wt61p803_puzzle *mcu)
return ret;
}
-int iei_wt61p803_puzzle_get_mcu_status(struct iei_wt61p803_puzzle *mcu)
+static int iei_wt61p803_puzzle_get_mcu_status(struct iei_wt61p803_puzzle *mcu)
{
unsigned char mcu_status_cmd[5] = {
IEI_WT61P803_PUZZLE_CMD_HEADER_START,
@@ -469,7 +469,7 @@ int iei_wt61p803_puzzle_get_mcu_status(struct iei_wt61p803_puzzle *mcu)
return ret;
}
-int iei_wt61p803_puzzle_get_serial_number(struct iei_wt61p803_puzzle *mcu)
+static int iei_wt61p803_puzzle_get_serial_number(struct iei_wt61p803_puzzle *mcu)
{
struct device *dev = &mcu->serdev->dev;
unsigned char serial_number_cmd[5] = {
@@ -496,7 +496,7 @@ int iei_wt61p803_puzzle_get_serial_number(struct iei_wt61p803_puzzle *mcu)
}
-int iei_wt61p803_puzzle_write_serial_number(struct iei_wt61p803_puzzle *mcu,
+static int iei_wt61p803_puzzle_write_serial_number(struct iei_wt61p803_puzzle *mcu,
unsigned char serial_number[36])
{
struct device *dev = &mcu->serdev->dev;
@@ -544,7 +544,7 @@ int iei_wt61p803_puzzle_write_serial_number(struct iei_wt61p803_puzzle *mcu,
return ret;
}
-int iei_wt61p803_puzzle_get_mac_addresses(struct iei_wt61p803_puzzle *mcu)
+static int iei_wt61p803_puzzle_get_mac_addresses(struct iei_wt61p803_puzzle *mcu)
{
struct device *dev = &mcu->serdev->dev;
unsigned char mac_address_cmd[5] = {
@@ -581,7 +581,7 @@ int iei_wt61p803_puzzle_get_mac_addresses(struct iei_wt61p803_puzzle *mcu)
return ret;
}
-int iei_wt61p803_puzzle_write_mac_address(struct iei_wt61p803_puzzle *mcu,
+static int iei_wt61p803_puzzle_write_mac_address(struct iei_wt61p803_puzzle *mcu,
unsigned char mac_address[17], int mac_address_idx)
{
struct device *dev = &mcu->serdev->dev;
@@ -630,7 +630,7 @@ int iei_wt61p803_puzzle_write_mac_address(struct iei_wt61p803_puzzle *mcu,
return ret;
}
-int iei_wt61p803_puzzle_write_power_loss_recovery(struct iei_wt61p803_puzzle *mcu,
+static int iei_wt61p803_puzzle_write_power_loss_recovery(struct iei_wt61p803_puzzle *mcu,
int power_loss_recovery_action)
{
unsigned char power_loss_recovery_cmd[5] = {