Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2445925pxb; Tue, 13 Apr 2021 01:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4otzAgSqXXqbX2ltsKEjw3bBGSUKBb2fj5vgx/JF5xH57yCcaDA8CLNWSmO0fGd3guKqo X-Received: by 2002:a63:181c:: with SMTP id y28mr32270737pgl.175.1618304283052; Tue, 13 Apr 2021 01:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618304283; cv=none; d=google.com; s=arc-20160816; b=OvgL+rwlA2qxmrkRV69MfEef8EbNonU40OBXm4raPKrdNuHaIp9NNHWTRpnohO0yBa eUjSjS/nx8LSAladY7h9/Iph8IEVwHBt0ACyMrNzZmO4iM8a2NTMhv7EDhxrxXkeG1eS wZfV8r9eLEoX+X0ol6KGeW3OJwAcVA7epV/9BAGv6zK74bUSHCWu4euh6AZXZp90a7PK EQGQHlYeEKx3pwP0ZLOv+Oxtxdv1iSyjInBNcHgnGFdxNt7yRHBkN2fLPo1TCvBEf0pc k87RXzBhZxm3vapI/n30uhc6ZRzvFw7GqlF/eIJLqvbKNWu/A8NtVKLIWE17mDx+wQ2i 1aoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=uOPZFW0JXP30ALtKUXOabdE9zc4emtswgai1MhpZ+Hg=; b=icPPv9/+Vqu3Tr9+9Wxu3UKh+7hlayiiU5gXfEnx7Unwm9nzSRIjIb5NPu80wsdgRv tcpHRuIDeivejxLEqi1A5fw5rTLbY0u558SVnMsw1biFRBrI+DfIeeTEimVIJOQCq43m XJzdQ91SZszLAUwFwvNekEVqQSBKqrKG9C5lV9L3Lt8LjXgRLs+M8edGo9UQo+fyF1FP STl+aJAfHlSTcdt3K1rKr+dWfaVhkJVdMXGly4Lpukj93yYPc6iupuq+sn8/077CoX86 FnJG5S/KQk6qdO+hn1Jv0e/XGFrvdUIqY9OgkRT7GzusxIPRA85wc+vpE6MROwJvhTdh rebA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si11375733pgm.285.2021.04.13.01.57.50; Tue, 13 Apr 2021 01:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244095AbhDMGDS (ORCPT + 99 others); Tue, 13 Apr 2021 02:03:18 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:40113 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243829AbhDMGDS (ORCPT ); Tue, 13 Apr 2021 02:03:18 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVQPvrp_1618293771; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVQPvrp_1618293771) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 14:02:57 +0800 From: Jiapeng Chong To: jdelvare@suse.com Cc: linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] hwmon: (nct6683) remove useless function Date: Tue, 13 Apr 2021 14:02:50 +0800 Message-Id: <1618293770-55307-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/hwmon/nct6683.c:491:19: warning: unused function 'in_to_reg' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hwmon/nct6683.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index a23047a..b886cf0 100644 --- a/drivers/hwmon/nct6683.c +++ b/drivers/hwmon/nct6683.c @@ -488,17 +488,6 @@ static inline long in_from_reg(u16 reg, u8 src) return reg * scale; } -static inline u16 in_to_reg(u32 val, u8 src) -{ - int scale = 16; - - if (src == MON_SRC_VCC || src == MON_SRC_VSB || src == MON_SRC_AVSB || - src == MON_SRC_VBAT) - scale <<= 1; - - return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127); -} - static u16 nct6683_read(struct nct6683_data *data, u16 reg) { int res; -- 1.8.3.1