Message ID | cover.1678704562.git.geert+renesas@glider.be |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1113260wrd; Mon, 13 Mar 2023 04:00:36 -0700 (PDT) X-Google-Smtp-Source: AK7set+G+tYSYIyN7biqcez7OJ1kEkEuPaxMzoj1BP+bNJewb69ItLp2K+wgTdW+AgRGyD1vRBsG X-Received: by 2002:aa7:989b:0:b0:624:2f88:927d with SMTP id r27-20020aa7989b000000b006242f88927dmr2968258pfl.27.1678705236153; Mon, 13 Mar 2023 04:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678705236; cv=none; d=google.com; s=arc-20160816; b=PhaUt0vyL5rGMvFX/oVOlY1ijNngRUVG6dVw/JRA7+qtO0/QYeXSiTbYUCn88D2MVP 3bwK42lkf+6pZMBAwURr+ePTNl6ff6fWuVvOrnzAJrg1YGk2CqoSHp4z0YSluIzhKHIC JP9fJEmN7WaH8qkVUeQMUrq0qn78aDtkWDfU3ljE6H5Nr8InJOv/5tHdYunE4x2kxas6 pTiCltlFaSoa7ZfpbSlKDUQseJh/xZm0ST4hRpJ4FNj1wvUhe+5S8aUH/7/8bmG2J93C EIUErEpAD+IYdRSb3wGLgJnlEuJYeQsYrYBwLcjXfOK4eO4S3vmzt4bxv0y4eClcKBFQ cEHQ== 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=zv5ZpP8+YlMQNmgOx9lshR2P3v/dsrvo9fXMGT77ZGo=; b=GHm2ppNRU6ERg4J17PqsgT3uXI+OhkC88jaZJuMR25JrmwZrJGZnS6D7aCpeRBgcev HU5wkScCs51HK03t9g0ZxsZ6u/C673yrnfcynvFp61cyxtXlJdUDzdVntGL3zez7DWle 3mm3TKAdkT6+FGnfjBuUvfpx9+/dFarT3ZTB2447NWeWLeE3dqIdCIPhHvT/OZsDCabx Id+kabhUOYGqtEmFBmGGY2RbPGu5LiLPDChDmm6Ba8N/EcAanG4vVnmC8Mfx1Vf5tMjU s9tCJ+6RE+RNqO9oegtoEJiWdTZ6PHo12F4H+YdiU+/gNdNKwmH6EZ+94vPqfbSjcKO5 quQA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a620606000000b005a9107d6871si6094266pfg.220.2023.03.13.04.00.21; Mon, 13 Mar 2023 04:00:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbjCMK66 (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Mon, 13 Mar 2023 06:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbjCMK6t (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Mar 2023 06:58:49 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E65BA252AF for <linux-kernel@vger.kernel.org>; Mon, 13 Mar 2023 03:58:42 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:7ed1:e2c6:b94:264a]) by baptiste.telenet-ops.be with bizsmtp id Xmyg2900401Vtj801mygze; Mon, 13 Mar 2023 11:58:40 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1pbfsQ-00C3Hz-Ew; Mon, 13 Mar 2023 11:58:39 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1pbft1-008cWa-RO; Mon, 13 Mar 2023 11:58:39 +0100 From: Geert Uytterhoeven <geert+renesas@glider.be> To: Mark Brown <broonie@kernel.org>, Min Li <min.li.xe@renesas.com>, Lee Jones <lee@kernel.org>, Vladimir Oltean <olteanv@gmail.com>, Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>, Michal Simek <michal.simek@amd.com> Cc: linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be> Subject: [PATCH 0/6] spi: struct spi_device constification Date: Mon, 13 Mar 2023 11:58:32 +0100 Message-Id: <cover.1678704562.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760250021545334501?= X-GMAIL-MSGID: =?utf-8?q?1760250021545334501?= |
Series |
spi: struct spi_device constification
|
|
Message
Geert Uytterhoeven
March 13, 2023, 10:58 a.m. UTC
Hi all, After noticing new cases of casting away constness, I went over all spi_get_*() functions and their callers, and made the following changes: 1. Make all pointer parameters const where possible, 2. Remove unneeded casts, some not even related to constness. Patches 1-5 do not have any dependencies. Patch 6 depends on patch 5 (and current spi/for-next). Thanks for your comments! Geert Uytterhoeven (6): mfd: rsmu_spi: Remove unneeded casts of void * spi: fsl-dspi: Remove unneeded cast to same type spi: Constify spi_get_ctldata()'s spi parameter spi: Constify spi_get_drvdata()'s spi parameter spi: Constify spi parameters of chip select APIs spi: sh-msiof: Remove casts to drop constness drivers/mfd/rsmu_spi.c | 4 ++-- drivers/spi/spi-fsl-dspi.c | 2 +- drivers/spi/spi-sh-msiof.c | 4 ++-- include/linux/spi/spi.h | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-)
Comments
On Mon, 13 Mar 2023 11:58:32 +0100, Geert Uytterhoeven wrote: > Hi all, > > After noticing new cases of casting away constness, I went over all > spi_get_*() functions and their callers, and made the following changes: > 1. Make all pointer parameters const where possible, > 2. Remove unneeded casts, some not even related to constness. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [2/6] spi: fsl-dspi: Remove unneeded cast to same type commit: 9c8400e3795decefe6390646ece820a310b37b79 [3/6] spi: Constify spi_get_ctldata()'s spi parameter commit: cc4b15670340315fb0b25d886c06bffb5f128f02 [4/6] spi: Constify spi_get_drvdata()'s spi parameter commit: 38dca04d659a422d842f7edcecd32253c7a6fb5e [5/6] spi: Constify spi parameters of chip select APIs commit: d2f19eec510424caa55ea949f016ddabe2d8173a [6/6] spi: sh-msiof: Remove casts to drop constness commit: 7859ad5a401b73bf2ddfa274950b5722492c3150 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark