Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp590121pxb; Tue, 19 Oct 2021 08:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5VdtCK5CTZJIvej1Iy+JcmqpjrXrUMBUnquGtw8tnR+bQqPFxbgomjbUNHb5aK0IhbDDy X-Received: by 2002:a17:90b:4d87:: with SMTP id oj7mr653494pjb.107.1634659123461; Tue, 19 Oct 2021 08:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634659123; cv=none; d=google.com; s=arc-20160816; b=THB3JQx0Y7z3BnWUnMOXesHk+tBHpuYOtoRXCf6MQuAG7H+I8TExSLlSmZkKceX7u3 HfH3V9jUPktR9AUPduhiyQjUp7kDN4VZKQ0gEmOzaGLMOZAnF9Kh5GL7x0E+Kn0bwS6N xML4CjC+o0jC+cmXlqE93AtkiFl4RPM2wYSOIz2sOqRU9gKQnHPakWanCvusv6oWp77X 6RZmfPXyj8MY27vR8jI+F04IuItX9p0xjGlkD6CMKX45XAZ6JRi6cIj/Fmc69BMx0rXG Lqx+amk9ztbrHDaTh72oQLdutlCz6tV+zU+BQTvMqzyXmlNJ5gOIMTeYD5tgv1hp7Hwa 4g4w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GdAgsQRhpp9wdGRubMgew2cwf6VUf4A8ZQcAp7GlFyo=; b=ZNhYdFfeDx4E84VT1MA9MqKsNMx10GGg3wYBi4ygLDDdEHxqrj7VUg1TJhYB4M+Tyb Jwn3dDhi1ZQxqOyXYOTpBqAAm11nDiOdvQNQgashH+gnWheOGdwlkEHbqnvpaoEywC+D 53lgo9S61rRF/hrE/t5sq69thbIBMwC6V1eoFzD+73oUZMPhS9042hhoigrvWbH0p8Tx BVz1ZVHfX5608sbdfMoomMwUnoVu3Q4964FxlpLCcLKEdn9Wno0IeYwL2phH9jcNFSY5 WZHFfBQn7NhT2VhNu2mbxwcQVM3NGCy4EPjhmC0tqjfetQoq+Ca93NxIiqw86jmzXnT2 pjag== 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=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si25517456pgv.79.2021.10.19.08.58.30; Tue, 19 Oct 2021 08:58:43 -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=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232959AbhJSP6C (ORCPT + 99 others); Tue, 19 Oct 2021 11:58:02 -0400 Received: from comms.puri.sm ([159.203.221.185]:33118 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232349AbhJSP6B (ORCPT ); Tue, 19 Oct 2021 11:58:01 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 5BDE0DF681; Tue, 19 Oct 2021 08:55:48 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5SFdxqckliOk; Tue, 19 Oct 2021 08:55:47 -0700 (PDT) From: Martin Kepplinger To: sakari.ailus@linux.intel.com Cc: kernel@puri.sm, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, lkp@intel.com, martin.kepplinger@puri.sm, mchehab@kernel.org, paul.kocialkowski@bootlin.com Subject: [PATCH v3 2/2] media: hi846: remove the of_match_ptr macro Date: Tue, 19 Oct 2021 17:55:09 +0200 Message-Id: <20211019155509.1018130-3-martin.kepplinger@puri.sm> In-Reply-To: <20211019155509.1018130-1-martin.kepplinger@puri.sm> References: <20211019155509.1018130-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similar to other drivers, this should fix a Clang compilar warning when building without CONFIG_OF in which case of_match_ptr() is NULL and the const struct we would use otherwise is unused. Signed-off-by: Martin Kepplinger Reported-by: kernel test robot --- drivers/media/i2c/hi846.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/hi846.c b/drivers/media/i2c/hi846.c index 614d55932903..48909faeced4 100644 --- a/drivers/media/i2c/hi846.c +++ b/drivers/media/i2c/hi846.c @@ -2176,7 +2176,7 @@ static struct i2c_driver hi846_i2c_driver = { .driver = { .name = "hi846", .pm = &hi846_pm_ops, - .of_match_table = of_match_ptr(hi846_of_match), + .of_match_table = hi846_of_match, }, .probe_new = hi846_probe, .remove = hi846_remove, -- 2.30.2