From patchwork Sun Dec 31 18:34:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 13507304 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 682C59449 for ; Sun, 31 Dec 2023 18:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qzvaj+eT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AE9DC433C7; Sun, 31 Dec 2023 18:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704047736; bh=zWlhy6ZNkjB3qcJbh53BaTcO2Nf62ujM4U2RDSpLLfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qzvaj+eT6yIhjElsWQ7kqjJGNGf6we06zq8hLilTcDxmA6IvF5DLPbGyJQMpTCnRc 683erOUkjfFHpNRM2VNC8wdRhfsF3FTWP0kDMNhULdI3jmboAlVVIJVBCAD7DT82Pg 5Sf3X+IRhSzPQnSGgxHZrArn3MqnOYWs98iaDgJxiDmRD75ZltJ1DRYJr2sxDhjaah cRwtSHAV+p5yrn6nM8ALV7NtkAQ5J5sQuqG8Od/+YEr6xCXWZQmo11fLxwrp4UsHWM qG164BWsVf+M45f9K89y9vor+VzWrdvA+uZEKkZNYTjrbUGBuOOferQaapMq7bi4qb 1vm5RoDbcdWjQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron , Mike Looijmans Subject: [PATCH 09/24] iio: gyro: bmg160: Drop ACPI_PTR() usage Date: Sun, 31 Dec 2023 18:34:59 +0000 Message-ID: <20231231183514.566609-10-jic23@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231231183514.566609-1-jic23@kernel.org> References: <20231231183514.566609-1-jic23@kernel.org> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Jonathan Cameron Avoiding unused variable warnings when using this macro adds complexity that in simple cases like this one is not justified for the small saving in data. Switch include to mod_devicetable.h as that contains the only acpi specific definitions needed in this driver. Signed-off-by: Jonathan Cameron Cc: Mike Looijmans --- drivers/iio/gyro/bmg160_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/gyro/bmg160_i2c.c b/drivers/iio/gyro/bmg160_i2c.c index 2f9675596138..9c8e20c25e96 100644 --- a/drivers/iio/gyro/bmg160_i2c.c +++ b/drivers/iio/gyro/bmg160_i2c.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include "bmg160.h" @@ -66,7 +66,7 @@ MODULE_DEVICE_TABLE(of, bmg160_of_match); static struct i2c_driver bmg160_i2c_driver = { .driver = { .name = "bmg160_i2c", - .acpi_match_table = ACPI_PTR(bmg160_acpi_match), + .acpi_match_table = bmg160_acpi_match, .of_match_table = bmg160_of_match, .pm = &bmg160_pm_ops, },