From patchwork Sun May 7 18:46:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 679801 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24ABAC77B7D for ; Sun, 7 May 2023 18:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229460AbjEGSrN (ORCPT ); Sun, 7 May 2023 14:47:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbjEGSrK (ORCPT ); Sun, 7 May 2023 14:47:10 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA6611563; Sun, 7 May 2023 11:47:08 -0700 (PDT) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1313B82156; Sun, 7 May 2023 20:47:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1683485227; bh=SU7vJL8GrMT4anYZQY3VoC0fg1V/E+ltS/kcsV6J/Ck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gpt4X3itPyx+FOLwn85i3gFucLTVoAdp8mRmJQv9GhkxJDEQGmo9naYCdEQRqVIlG TdroGOy5yiPNyhUMu2YUrr6I5ctN1Y76NAj8V8FsFqRJpBosQMxiltYX+h6Gxc00Nl vNK7qktLfBroZlNhMU4N7d8P8VGcIAXHe1ujBmUx3yzKcUrF/+7i00oM7oD2V+ss0N YiVnhS+CMV5wJRF10q9bcWV+eh32cZtthTn2nxYFmaCiym64aWy8KkttAXzfC3xA8u lo+HxP/pE9rr4HJY6lNxw21253qtjXPDtty39tT9LEizaONotFWDIx7T1K+lDQaEhT tHkvLm+XXJbwA== From: Marek Vasut To: linux-iio@vger.kernel.org Cc: Marek Vasut , Crt Mori , Jonathan Cameron , Krzysztof Kozlowski , Lars-Peter Clausen , Peter Meerwald , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 3/5] iio: mlx90614: Drop unused register macros Date: Sun, 7 May 2023 20:46:47 +0200 Message-Id: <20230507184649.39290-3-marex@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230507184649.39290-1-marex@denx.de> References: <20230507184649.39290-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org To simplify addition of support for new parts, drop unused register macros. No functional change. Signed-off-by: Marek Vasut --- Cc: Crt Mori Cc: Jonathan Cameron Cc: Krzysztof Kozlowski Cc: Lars-Peter Clausen Cc: Marek Vasut Cc: Peter Meerwald Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-iio@vger.kernel.org --- V2: New patch --- drivers/iio/temperature/mlx90614.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature/mlx90614.c index bd92b24918253..b0f69a7b05abc 100644 --- a/drivers/iio/temperature/mlx90614.c +++ b/drivers/iio/temperature/mlx90614.c @@ -35,8 +35,6 @@ #define MLX90614_OP_SLEEP 0xff /* RAM offsets with 16-bit data, MSB first */ -#define MLX90614_RAW1 (MLX90614_OP_RAM | 0x04) /* raw data IR channel 1 */ -#define MLX90614_RAW2 (MLX90614_OP_RAM | 0x05) /* raw data IR channel 2 */ #define MLX90614_TA (MLX90614_OP_RAM | 0x06) /* ambient temperature */ #define MLX90614_TOBJ1 (MLX90614_OP_RAM | 0x07) /* object 1 temperature */ #define MLX90614_TOBJ2 (MLX90614_OP_RAM | 0x08) /* object 2 temperature */ @@ -52,8 +50,6 @@ #define MLX90614_CONFIG_DUAL_MASK (1 << MLX90614_CONFIG_DUAL_SHIFT) #define MLX90614_CONFIG_FIR_SHIFT 8 /* FIR coefficient */ #define MLX90614_CONFIG_FIR_MASK (0x7 << MLX90614_CONFIG_FIR_SHIFT) -#define MLX90614_CONFIG_GAIN_SHIFT 11 /* gain */ -#define MLX90614_CONFIG_GAIN_MASK (0x7 << MLX90614_CONFIG_GAIN_SHIFT) /* Timings (in ms) */ #define MLX90614_TIMING_EEPROM 20 /* time for EEPROM write/erase to complete */