Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp867926rdb; Sun, 3 Sep 2023 14:44:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbOk3FclQaFLD0t4nISWh6TJGLrgjwr6il3dEfpsbqnne9Q1cBZjbujOatnxr7acQ7zpN3 X-Received: by 2002:a05:6512:39c7:b0:4ff:70d2:4512 with SMTP id k7-20020a05651239c700b004ff70d24512mr7065004lfu.23.1693777494023; Sun, 03 Sep 2023 14:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693777493; cv=none; d=google.com; s=arc-20160816; b=scFYDlk9bQW/vRjOi538M6gFUFFwRRx0esHUz8kg80QcafPgRMWZTWcbtimrKWP2fr 73HiifEVgfLkJnNf1zQwzOJRgY/zAH3QxWqBs2KYJu8z7NJ3lYjgSfUaXdVexQbkj3HM E5Ygkwq3J5FBU7pCcoY+5VFvIvOFvqICX3vfoSmtsyof+gpnEP+yAJdY6KlVATZQ9na4 Z5iAkc30bJTmo/RXa3QGTPpvsxDvKWqWkO2KDiyI4x3JmlcRf/mFiR4Q6OXty7twa5hA 2xxrs1GCHEnejq/vUJzlRaEWhUoRu5wPHd4AEOAGlRzgNggJJNG6gv2tjpEyqCHUjRwb 46Dw== 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 :message-id:date:subject:cc:to:from; bh=4Uj6tZUBVTRdTdcsadn1Prfjti6xHJZtqm9vha+Xu9I=; fh=izturhlLv2dLm4ptK0cwZuzoG06te8io7216TgydiRA=; b=rLjuKRkHqxS1Kbn8LhfXNc2ELgrTw5+CZ3GA0EtfCx2Ai+S2ooHTbwhW21bKeUGaDA +468XOdw4K8vhO3hdy+yayuzawBr4P7Yg3BuwiA4Lzkgdf+79SlkcUEtluy+3wfKSfvR 8PAXVnZ/hNaAKd62iFjmkFBspPSB2mkYlX3+OdVoVhWBhhQgYL0yFxtqP4zpGFrzwQpn n6Drp4zRMbhWB+6wBqI0W+Jh7OsQ3XvWaqdcM453kpOPX2J1qZrGkyPY3bnmuSZFFSF4 z4BcY/ujWsQc3B0R46cctMS7KNOSAziE5GSKlWstSRqvwlv7FUy3/GrpYsOrFFRbqqpN p7Ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020aa7df04000000b00522ba3c7f50si5661752edy.631.2023.09.03.14.44.28; Sun, 03 Sep 2023 14:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236147AbjICJBD (ORCPT + 99 others); Sun, 3 Sep 2023 05:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233079AbjICJBC (ORCPT ); Sun, 3 Sep 2023 05:01:02 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 36A3B125; Sun, 3 Sep 2023 02:00:59 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,224,1688396400"; d="scan'208";a="174837511" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 03 Sep 2023 18:00:57 +0900 Received: from localhost.localdomain (unknown [10.226.92.30]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 75E364189A8B; Sun, 3 Sep 2023 18:00:54 +0900 (JST) From: Biju Das To: Jonathan Cameron Cc: Biju Das , Lars-Peter Clausen , Michael Hennerich , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH v3 0/2] Match data improvements for adxl345 driver Date: Sun, 3 Sep 2023 10:00:49 +0100 Message-Id: <20230903090051.39274-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series aims to add match data improvements for adxl345 driver. This patch series is only compile tested. v2->v3: * Replaced struct adxl3x5_chip_info->struct adxl345_chip_info * Simplified adxl345_read_raw() * Dropped enum adxl345_device_type as there is no user v1->v2: * Replaced EINVAL->ENODEV for invalid chip type. * Kept leading commas for adxl345_*_info and adxl375_*_info. * Restored switch statement in adxl345_core_probe() Biju Das (2): iio: accel: adxl345: Convert enum->pointer for data in match data table iio: accel: adxl345: Simplify adxl345_read_raw() drivers/iio/accel/adxl345.h | 21 ++++++++++++-- drivers/iio/accel/adxl345_core.c | 47 ++++---------------------------- drivers/iio/accel/adxl345_i2c.c | 20 ++++++++++---- drivers/iio/accel/adxl345_spi.c | 20 ++++++++++---- 4 files changed, 54 insertions(+), 54 deletions(-) -- 2.25.1