From patchwork Sun Dec 31 18:35:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 13507308 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 0CC889449 for ; Sun, 31 Dec 2023 18:35:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I86AGei/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3F9CC433C7; Sun, 31 Dec 2023 18:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704047743; bh=Lvpx8Bxt2jg94Hk0bcBhVt3BqENH0sXYyi35Io7CEpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I86AGei/WASanIV3XSCZ0VYM3L19Du5oZ/emg4JKFdi6D6GQxxBweKQGdfTTYisP+ 8QLUB8nloCIML84VOs8KSkvMozXUMes4o8tx5hx7sEHiyfm9EerIBv2P7IZlcDQqtS HESE39HGpcmy5mQCEh6fo60CM4jvwSGtI4MIG6vAVllKsMRlIDDremgrvBrhzN4vig BjKFLdcC8gcHKqtxL1RZwHESBJ8fQZ1aJQmUopsOnWaWTmFJhkeIbfZLGtA+RfREJS WkR9ZzSF8yhiR5UrutEQPYMf9mrt/X2Hgtvy83lpwAOAr3uGRW2YTIznKkfcSqnud3 srHQ7/PJutEPA== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [PATCH 13/24] iio: light: jsa1212: Drop ACPI_PTR() usage Date: Sun, 31 Dec 2023 18:35:03 +0000 Message-ID: <20231231183514.566609-14-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 from acpi.h to mod_devicetable.h which includes the definition of struct acpi_device_id. Signed-off-by: Jonathan Cameron --- drivers/iio/light/jsa1212.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light/jsa1212.c b/drivers/iio/light/jsa1212.c index 37e2807041a1..869196746045 100644 --- a/drivers/iio/light/jsa1212.c +++ b/drivers/iio/light/jsa1212.c @@ -12,10 +12,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -438,7 +438,7 @@ static struct i2c_driver jsa1212_driver = { .driver = { .name = JSA1212_DRIVER_NAME, .pm = pm_sleep_ptr(&jsa1212_pm_ops), - .acpi_match_table = ACPI_PTR(jsa1212_acpi_match), + .acpi_match_table = jsa1212_acpi_match, }, .probe = jsa1212_probe, .remove = jsa1212_remove,