Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2586805lqz; Wed, 3 Apr 2024 02:36:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXV7/Gse3hplXY02vC/Au/e8IoExfOjZTSWen0lB8pbI9KwIKzh9J9RyOpxoosPrYNlU+jolbhlWfkDETvCFhic90+chXNxrEkcdTwwxQ== X-Google-Smtp-Source: AGHT+IEz5NznSOintqAHAEeo/YU7HMvjF5jV11vvOjJlv9eq2IvmiKcPEx2RX6wNb7NupDnt5sOp X-Received: by 2002:a17:906:2286:b0:a4e:2ad3:60ff with SMTP id p6-20020a170906228600b00a4e2ad360ffmr9642956eja.47.1712136986607; Wed, 03 Apr 2024 02:36:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712136986; cv=pass; d=google.com; s=arc-20160816; b=RZfGLwf1NfDuq9ePr5m1fTc/FMWEwcokQH1ce4xy5QxyUbGAiL6h1F6pNCYgCslmXa C/BDjvRGAJCi3rUrl5Wh4O5B1KRV1RTi/X/zBC8PF0GT6kEercBeDyyw4rG4Dz2KxtUR 52BGtRxaNINed1oZS68hfBJVTmaIRaYfwGi5KEvxbPfIGxb7S/7Kqx6E3A8eEfXQpgfT Pu841KkPirRkHUc/jrk/GKM4X4DZ9HUbpMEowLvwOAhPWAFL3egsS+RpNkCjCCN5xTdw QOfnJ2hVznAhqaGLlNgqBX8xBJZ9MKSIJppwy7B8VpadO7aNqCOBueTlfAvlzBrZ5lR5 fxzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=jqeB5vNmX+z3s7NtgkSw/lB74iYuwmKKZS7T3U0Zq5Q=; fh=bvK3HAkd1h/U0dFjvh32kL2fH95vETRFXiZ654j+Dz8=; b=tNR8zAfylRznYl7OWPOwznrDuwqnaw4sZldsA/0vb3ShtEYH4VhoU15Y3R/how1fBc XXKy3/X2r/ArsWf4TvwKGz0YgpwZtaRythYCWWf7+4OGdckR1sQOxOlyGSSGBY17UaCc mYRoNChV32rCz8l1TA3Hky2dhKuqM5DafYNrT2zWoQMyqVqs/e5pHguXFlcY8DTIUSQL Fo4MEeA7WZGST6R0pocQv9zBVYuBqKzZqHg3MtKY1eAm7tV4eqoNUhn0fJBRa2BmEeUw wiwJXVPmXmiFZmVNRE50sAzdjWQZpOYZunVO1yUDhdCm0booYLrRgVUzDaSsW8iVGl5M R+sA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EEWnWSyl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-129436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qf5-20020a1709077f0500b00a4e64ad0c9asi3482872ejc.782.2024.04.03.02.36.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 02:36:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EEWnWSyl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-129436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 563C71F29624 for ; Wed, 3 Apr 2024 09:36:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0435F13398E; Wed, 3 Apr 2024 09:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EEWnWSyl" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC7EB6FE00; Wed, 3 Apr 2024 09:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136977; cv=none; b=S2iGwhbcCQZsXfICa3dyrldYCXHaiOh+eTGNZUI8GaR9BbHmVYGxnq2cs2F294TdRMXSuX36KvMOcbqABYUdYK+WqXg1XjinKdwSU2XCve2XkWskB8r5a2gphF9szcG4lrxmtB5oNqR/lLGXF67qhi+QLptBDwlPwNdzKAxnAME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136977; c=relaxed/simple; bh=J4/4Z/KbRHhQpBPL6z/aGYydGWTMJbsDXjqRAbKjEZM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jdJ7fCJLveJdxtHAN544bbimVNjPKQ4S2Gg+ZO4BDiw3KsPYTzgyxmACCLiA4A5hptXdOR7mb1+SPrFtdB1FWjm++G8SeApcOR3yr4opbkRfxHKAYHPMBYp9pzCJj/HOagmXs4D2iJUef3gf0znaBfZNfVQMUoq8p2Q1hZmIyAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=EEWnWSyl; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136976; x=1743672976; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=J4/4Z/KbRHhQpBPL6z/aGYydGWTMJbsDXjqRAbKjEZM=; b=EEWnWSylOKhhopQMk7DNhthF2S/HaZjaBYtnFwpTPZqkea7nJL2jCUwf /yN3nrizHaD6qXn49jUG3rPeUuaUVEmxStIBa8ddESXs4ODmfL/BF8jDC /8suW9QMQDD4OVTKk9Zya0Hg3fXwdrZamaiUAtGPczK+hEDCwKMdR8NNn LGKCAPxgbRoogvwY6IoWnJTCI2SkfhZCUX+fcUcr9QAMCE6X5HT92vd0y 0MWL397CDmaSJN3pLMzYnl6mjeb/pD3383rK7PgnTUmh7UiYbH72oofzE gK5ZUHpO0rCCsbiynj3bftrgYMHYi/7x5EC/0fbC07c11jO9aa/IsDQLr w==; X-CSE-ConnectionGUID: BVAbgaSjRFqYtOUodZ3JLw== X-CSE-MsgGUID: aHZNuR9XQn+RunVOAjP+Gg== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7219125" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7219125" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:36:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="915176150" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="915176150" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:36:13 -0700 Received: from andy by smile with local (Exim 4.97) (envelope-from ) id 1rrx2R-000000014m4-15PG; Wed, 03 Apr 2024 12:36:11 +0300 Date: Wed, 3 Apr 2024 12:36:11 +0300 From: Andy Shevchenko To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Arnd Bergmann , linux-iio@vger.kernel.org Subject: Re: [PATCH 16/34] iio: ad5755: hook up of_device_id lookup to platform driver Message-ID: References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-17-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403080702.3509288-17-arnd@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Apr 03, 2024 at 10:06:34AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the driver is built-in, 'make W=1' warns about an unused > ID table: > > drivers/iio/dac/ad5755.c:866:34: error: 'ad5755_of_match' defined but not used [-Werror=unused-const-variable=] > 866 | static const struct of_device_id ad5755_of_match[] = { > > While the data is duplicated in the spi_device_id, it's common > to use the actual OF compatible strings in the driver. > > Since there are no in-tree users of plain platform devices, the > spi_device_id table could actually be dropped entirely with this. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko