Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp334700ybz; Fri, 17 Apr 2020 01:59:03 -0700 (PDT) X-Google-Smtp-Source: APiQypLcIZ02Oui9UXzjHE88jfHk/nBrdq6e39W4s+Vrb19xwoVX4ERenE7Qbng/nPmQDyZVm0HA X-Received: by 2002:a50:9346:: with SMTP id n6mr2047131eda.320.1587113943658; Fri, 17 Apr 2020 01:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587113943; cv=none; d=google.com; s=arc-20160816; b=Vsr4Sqlhrp4xovCJ9gdde7aSsvCj1ODb6+hZmkAlG89QlsxqZ5Cds3h7pw9cvOgKqz v8iZyCna8wIXVSGIp1zldmlZzH1+kF2xuIl028bOU6oYAFBg+9db3B16Ey9esrsRASL1 LuNW1qeNo6DSOPz4vQcTZiw4j1NJnm4YIguxyGQ3u7AEZ8fiA273Wpwf4B85KXFPOPDF wNWp3jAxD9Q6RICEGrNBnABRA1YlIDJdpSzY0nHleHTywF8w8G2aikqGMAfMYpdlGzx9 pyGky02dm0PPXApa4VTMNn7Q/+vYECxWEV8Je/arRtI6vNtGrKyYIXNdo479ekJfLMrT IY+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ojqfJ77ZWfHQXMWi1sojhkyNdliqFaSLArSuL1mv71Q=; b=JqHGpcYH2LnIT3cQcZ891rJGDLbCwOVoFG43L/qBUqjBiMV+jzUvaw1WdSxPJhd/El 2Tm42+mjmXkY2W37+C8KDL7cW8hKr3uP1KggTAwFwPjU/JyGXvzMXEA7y3hZ9VQdlyK1 RCWpUvioJVLjNj3WGMiEVaHDHO0/w6/ytd0MVevDadHvZ2+LcSPEhE/FE5HZvqyqLcSD 1enZORdzrYaUCSnTtIASbPVKswwwTHw34OL03bOLi9jOt4fTjW1u74ai86jfyKnqu7wx NupkwL0Qg47L7qH/6lZS3vPgDyQaz2y0ZX6eKdQkbE9RJ6YTqLSY0MMdKPvc1QgM8Dro IKQA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si3931469eju.62.2020.04.17.01.58.40; Fri, 17 Apr 2020 01:59: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730034AbgDQI5T (ORCPT + 99 others); Fri, 17 Apr 2020 04:57:19 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2346 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729889AbgDQI5T (ORCPT ); Fri, 17 Apr 2020 04:57:19 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7A22E5D4279283938D6F; Fri, 17 Apr 2020 16:57:15 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 16:57:08 +0800 From: Jason Yan To: , , , , , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] backlight: qcom-wled: remove 'wled4_string_cfg' and 'wled3_string_cfg' Date: Fri, 17 Apr 2020 17:23:35 +0800 Message-ID: <20200417092335.14163-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/video/backlight/qcom-wled.c:939:34: warning: ‘wled4_string_cfg’ defined but not used [-Wunused-const-variable=] static const struct wled_var_cfg wled4_string_cfg = { ^~~~~~~~~~~~~~~~ drivers/video/backlight/qcom-wled.c:935:34: warning: ‘wled3_string_cfg’ defined but not used [-Wunused-const-variable=] static const struct wled_var_cfg wled3_string_cfg = { ^~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/backlight/qcom-wled.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index 3d276b30a78c..df53fbd5cd03 100644 --- a/drivers/video/backlight/qcom-wled.c +++ b/drivers/video/backlight/qcom-wled.c @@ -932,14 +932,6 @@ static const struct wled_var_cfg wled4_string_i_limit_cfg = { .size = ARRAY_SIZE(wled4_string_i_limit_values), }; -static const struct wled_var_cfg wled3_string_cfg = { - .size = 8, -}; - -static const struct wled_var_cfg wled4_string_cfg = { - .size = 16, -}; - static u32 wled_values(const struct wled_var_cfg *cfg, u32 idx) { if (idx >= cfg->size) -- 2.21.1