Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp635485rwl; Thu, 5 Jan 2023 02:19:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXsLJyLtJ6A4271891iqM3a7uAP2XWpFbqyfx4kBO0Log42YPVV64U03NBZwQ0YA2wtwel7S X-Received: by 2002:a17:90a:ea0a:b0:219:211f:e2ae with SMTP id w10-20020a17090aea0a00b00219211fe2aemr52524134pjy.49.1672913950775; Thu, 05 Jan 2023 02:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672913950; cv=none; d=google.com; s=arc-20160816; b=fYCPFIlU9oyQ2L8CP4JK1IKmtZQKqKgRY7TCMWVrUAoTd93cfE0MwfwIkQPUEQfjiS 5oNf17UhsFQlYymJ93mRb3WXo6wA+z/IFv3544Hy/JGWQkramk0mxKls75yrck9bFy+y PJU3sh0wzlmb0286+qtE3vhl8zDeth9moV6KRngbqvYy0ogJzurkaBZCLf1JJBjFg1Sf AUV/tnUxik6kCt1WLETPrxyVU/VrJFU77B4UkWYNxgOczDMvh2Hz01BWBJuH7+pX/s+z dfpKH9vtZYDmythR4tE+4N+/L0GvVZB0ByaWoU1ylgJPweEpU/gVNCBxboJudVYBwW0Q Hm2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zLecnYnCYpCIjU42I3CfkKPAg4aUyXdGIYSAM2JyBWQ=; b=WYwdpCsdSEyZf4VHmLABYtHkHk3aZwz1a3VzeaArqhiuHQzXpsTBtY3+bF6R6VevwD SNMVlPqWXIpS9Byi/sibQsTarfwp6csRdOG9567cuOZ+LGFB/dbLA214G8HBkqrdTL2x DneDF5QgE6B1TsqQyuwueMV75Qox3iTRaVcgLzVBJypB1zJr4qI2Lbb8Jk7AdvPSjxgP IuB37AfZVSv6FlqPa6S8aStSaeesVkXzkcikdbw3Y/ivA95c+4X9UnOSXgki1PytzhTT oX5EHhn72dm2mYaDKBYqUD3VlypjvzxYYyzA04FusqXp1HA/eq/gXVAACMxe5YNPTKj0 m9vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs11-20020a17090af50b00b0021939584595si1486153pjb.82.2023.01.05.02.19.03; Thu, 05 Jan 2023 02:19:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231802AbjAEJvK (ORCPT + 55 others); Thu, 5 Jan 2023 04:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbjAEJuv (ORCPT ); Thu, 5 Jan 2023 04:50:51 -0500 Received: from out30-7.freemail.mail.aliyun.com (out30-7.freemail.mail.aliyun.com [115.124.30.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD0A544FA; Thu, 5 Jan 2023 01:50:50 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R241e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VYvRqMu_1672912240; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VYvRqMu_1672912240) by smtp.aliyun-inc.com; Thu, 05 Jan 2023 17:50:47 +0800 From: Jiapeng Chong To: jic23@kernel.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] iio: light: max44009: Remove the unused variable max44009_of_match Date: Thu, 5 Jan 2023 17:50:38 +0800 Message-Id: <20230105095038.112564-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable max44009_of_match is not effectively used, so delete it. drivers/iio/light/max44009.c:545:34: warning: ‘max44009_of_match’ defined but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3632 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/iio/light/max44009.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/iio/light/max44009.c b/drivers/iio/light/max44009.c index 3dadace09fe2..2f80a654ad6a 100644 --- a/drivers/iio/light/max44009.c +++ b/drivers/iio/light/max44009.c @@ -542,12 +542,6 @@ static struct i2c_driver max44009_driver = { }; module_i2c_driver(max44009_driver); -static const struct of_device_id max44009_of_match[] = { - { .compatible = "maxim,max44009" }, - { } -}; -MODULE_DEVICE_TABLE(of, max44009_of_match); - MODULE_AUTHOR("Robert Eshleman "); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("MAX44009 ambient light sensor driver"); -- 2.20.1.7.g153144c