From patchwork Tue Mar 14 15:12:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 69679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1823575wrd; Tue, 14 Mar 2023 08:26:58 -0700 (PDT) X-Google-Smtp-Source: AK7set+KbxDk/P46g8ERqQFikxbKUjdBc8G333Uj3zmZY6V+xYzqxU8gJ2ZGyGT2H8Euk98gHdEG X-Received: by 2002:aa7:96d3:0:b0:625:290:e303 with SMTP id h19-20020aa796d3000000b006250290e303mr4818086pfq.14.1678807617768; Tue, 14 Mar 2023 08:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678807617; cv=none; d=google.com; s=arc-20160816; b=tlKtwMCmsI7zknuTLbJ8fF1aTjkHx0RWogxGpCwPpHAs9tBnsH2HqYXl0Kzfky/A5X bD5Yf2gt7laKkqoakndP9IrSlWhtlKSVgcTWNHK7czEutZYGfK0r1A18d1EwFJPydQVU VIg9hBHlHPZ5t0L4i9NEw2SFiIv75KoDQzyTvn84IQzlqdSl3MGnFw3cQ+0PRZMLCwXj 1xCQZhRCIg987ZjhFRyTBx/HyUy0U8Z6S7RYK2unZbmgbv27JVtJpDAOXqWMY80kAl86 QZVBQmxTddm31JcGf0qmPgiPX8+lj0+B9gCC8WuChnUBbuTG3KzTNcTvQdQ/cRiD7DVO p8DQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8fjPi0++9HsE/g35dDtgt0nVDV0ftpyC2jXqNwiLftg=; b=Qtx5NW+p5dC98B0JxmPO0vpI4fhzgjpD616AbacIjW8Tzq/1xhB9qFy+LvBn60SYXn G5w9a7LfQYfVdPT2LQ4D2FjDo/4+gSLSUKvC04O5Xhm82zHV2h5kSmRyz6X36rawQJFP MXVYe5Fq1bkioDKNiP8O4Y3ass1yywt34uTpLwMSIj/y+hoza76FjJC9GegTnZoRtBL4 otdaVeRRIvmmB7f4ZRfDY9IUYfgLwK6q0KVoBhZEMykedrb6oh7IVm2I3k5g+W93x0bh Gnkc30nIemwsteU4QhkD3BwmeMIexlgbE3O9t3PIV0XvS59f47t2cQS+/7Y0Ev6REUuE DZHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wWN0v8x3; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i126-20020a625484000000b005de484ca9ccsi2539656pfb.149.2023.03.14.08.26.42; Tue, 14 Mar 2023 08:26:57 -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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wWN0v8x3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231667AbjCNPMd (ORCPT + 99 others); Tue, 14 Mar 2023 11:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231594AbjCNPMY (ORCPT ); Tue, 14 Mar 2023 11:12:24 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A8C8A2F2B for ; Tue, 14 Mar 2023 08:12:22 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id r29so6650557wra.13 for ; Tue, 14 Mar 2023 08:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678806740; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8fjPi0++9HsE/g35dDtgt0nVDV0ftpyC2jXqNwiLftg=; b=wWN0v8x3ge9+v/J0sUDB316m/AXx/aBfzFM4Br27vN+PgTRTZmSvt6C4sniYj84A6P 3RN72kOYp3ztPUnLaW3dDcV70GpWiwdDKbA9lV2PwQnnTCXRYC1FtttmKpG+WSiRJLTS nWq6Oy6/35vDp0N8Q/OBs1fJ4qP2y/dagc3Key4rlGM8OWzkQ47yNxn96L3IIlgwZpEU aAgD+3uLUAwfRY0gmp2amA3lmHeHGSlwSkO2EDYzJBBL1L3jVu78sTX/jnANP/rSUpk3 ymK4FWCz1twMyF473a1JDqq+CDR4ybHhPIjSFSqk4FRqIl+m7Emurz9gfrpN26VvTXls NB4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678806740; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8fjPi0++9HsE/g35dDtgt0nVDV0ftpyC2jXqNwiLftg=; b=kj25DIK2y8z10hQEj+3UKIh/KA5QdarAQEEcXD7sFfwIgg26PSiV4dyUPtzs5NIclo +PRBEnvXfCFI75lVr0Sw8lBVsHTYsBUJkQk13tvW74JKbK20GUGyazqVFFQWXU/lN1D5 CZy//FGQFE49AJNxlKhir+5l0Tyk2/S6WAHRyJe/7/p8AustU29ito5L7xX0zUbk4yze ZYIXHtYZEC1VFKKhNQIIPMPcdiIWnH6j0pvKDsXC5sD6k6IAtjrXQ4YInXgjxQwWRsGv Io2yyoBuc0jURkKtKxChjs2vmauqE0u4V18yo3WMbd/YCgnpGN3XiDCI8/YmJod2YLBy xSQA== X-Gm-Message-State: AO0yUKUMGpLfHj0xJcLf9awbmIRe+iFJ+T3nyNkls89xl+XjZn98GIFc +4hFfBoL2g/aWrXt2B9SM599gA== X-Received: by 2002:a5d:6b87:0:b0:2c7:1c72:69a3 with SMTP id n7-20020a5d6b87000000b002c71c7269a3mr25214914wrx.29.1678806740600; Tue, 14 Mar 2023 08:12:20 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4090:a247:8056:be7d:83e:a6a5:4659]) by smtp.gmail.com with ESMTPSA id d9-20020a5d4f89000000b002c707b336c9sm2320158wru.36.2023.03.14.08.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 08:12:20 -0700 (PDT) From: Markus Schneider-Pargmann To: Marc Kleine-Budde , Chandrasekar Ramakrishnan , Wolfgang Grandegger , Rob Herring , Krzysztof Kozlowski Cc: Vincent MAILHOL , Simon Horman , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH 4/5] can: tcan4x5x: Rename ID registers to match datasheet Date: Tue, 14 Mar 2023 16:12:00 +0100 Message-Id: <20230314151201.2317134-5-msp@baylibre.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230314151201.2317134-1-msp@baylibre.com> References: <20230314151201.2317134-1-msp@baylibre.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760357376560665445?= X-GMAIL-MSGID: =?utf-8?q?1760357376560665445?= The datasheet calls these registers ID1 and ID2. Rename these to avoid confusion. Signed-off-by: Markus Schneider-Pargmann --- drivers/net/can/m_can/tcan4x5x-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/m_can/tcan4x5x-core.c b/drivers/net/can/m_can/tcan4x5x-core.c index e706518176e4..fb9375fa20ec 100644 --- a/drivers/net/can/m_can/tcan4x5x-core.c +++ b/drivers/net/can/m_can/tcan4x5x-core.c @@ -6,8 +6,8 @@ #define TCAN4X5X_EXT_CLK_DEF 40000000 -#define TCAN4X5X_DEV_ID0 0x00 -#define TCAN4X5X_DEV_ID1 0x04 +#define TCAN4X5X_DEV_ID1 0x00 +#define TCAN4X5X_DEV_ID2 0x04 #define TCAN4X5X_REV 0x08 #define TCAN4X5X_STATUS 0x0C #define TCAN4X5X_ERROR_STATUS_MASK 0x10