From patchwork Sat Jul 24 21:47:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12397807 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B1F4C4320A for ; Sat, 24 Jul 2021 21:48:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6346260E92 for ; Sat, 24 Jul 2021 21:48:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbhGXVHo (ORCPT ); Sat, 24 Jul 2021 17:07:44 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:58396 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbhGXVHm (ORCPT ); Sat, 24 Jul 2021 17:07:42 -0400 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPS id 0482A3F358 for ; Sat, 24 Jul 2021 21:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627163292; bh=G9KCxkZ1DdC15NET5kZk+LZOMEIZ/z14F2Hvsqu6jDI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=ZJU0cdpCYfx3grk1C7T83yGbEWk07y1MEa4GZeIFZMT9b4zzOQd/OqzVpGBq+XWgu gUW/aTMt5Tc4kqXz4jIWBj1W41YNyfqErIbrx03Pa3eV9o7Kqb6Y3Py5YiEGOyP9lt cZerehvKvwKPbFqaKE/aagOt4RWK/XjxMoIP37uh+ErpjHq4QWBREmYCW2QTJzgGj/ ZbpyQEq07eDgtRGpZs5hoQdGPuNrlKoPZ5da1CjrFQ6vA+Bag1jUjtgJxdyRRL5nC3 I0c30CgTkZMayWkf1psaMVc8SpT3i0Cj+I40vWQtkAVp60646NB6eXS20DNfCVBrQT OQKytz+B60cbw== Received: by mail-ed1-f71.google.com with SMTP id d12-20020a50fe8c0000b02903a4b519b413so2794334edt.9 for ; Sat, 24 Jul 2021 14:48:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=G9KCxkZ1DdC15NET5kZk+LZOMEIZ/z14F2Hvsqu6jDI=; b=Fe8whV0U64NnHxgHrDw4YyR6p0q5r2ZsKBtcegmkr3531KvnowCjlU9LRHfQaowxkH Nhj6uBQy6nz9c/GixVf9ieqtiTVeMcdfBux/BE+bhTXLXoMGES36raKwr3+dn5GPkl/w gtt519CwpHwh+JaqQKJTHkZL2UVR2WJhUrC9leQqycIe97v1aa/xdwB3cfddtkqQ6TV5 hp4HGRecrpNj7Pa+N9mPihHw+T1SiVhpwmfRLUZQvx+yiUe2UC+wd4s3dyVqjjHm+oTo gFeh2iWaabAxsPzwNfAOMJc7tMyQe3HmH85DPkAr93smLjfamg4ZGJkAq08Sox6GzSj9 Ogvw== X-Gm-Message-State: AOAM532aBU31dJylqs1zUsF+arrkI5mfd2pXF/uHSsXCZTgNLv48N7af 7GMnDMFloyMQHDjRy79lEsJHOS3aGIaKOdaPgiRvAYRknPJw33WgStz4J/0rXAembMUX46L0JeS ABB6YhYW621XA0KtbIowk4dKjvmg9zA6MsoVYidY0AynT X-Received: by 2002:a17:906:8047:: with SMTP id x7mr46584ejw.453.1627163286814; Sat, 24 Jul 2021 14:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOmFVBri8CQWcWZUF1IqokLpZwOavdWOwnGXxKa0UI7mA9/SGqL9hAGuBdFfYDwRxhCsOSoA== X-Received: by 2002:a17:906:8047:: with SMTP id x7mr46579ejw.453.1627163286677; Sat, 24 Jul 2021 14:48:06 -0700 (PDT) Received: from localhost.localdomain ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id j5sm8383005edv.10.2021.07.24.14.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 14:48:06 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Charles Gorand , Krzysztof Opasiak , Mark Greer , Bongsu Jeon , "David S. Miller" , Jakub Kicinski , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 00/12] nfc: constify data structures Date: Sat, 24 Jul 2021 23:47:31 +0200 Message-Id: <20210724214743.121884-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, Constify pointers to several data structures which are not modified by NFC core or by drivers to make it slightly safer. No functional impact expected. Best regards, Krzysztof Krzysztof Kozlowski (12): nfc: constify payload argument in nci_send_cmd() nfc: constify nci_ops nfc: s3fwrn5: constify nci_ops nfc: constify nci_driver_ops (prop_ops and core_ops) nfc: constify nfc_phy_ops nfc: st21nfca: constify file-scope arrays nfc: constify pointer to nfc_vendor_cmd nfc: constify nfc_hci_gate nfc: constify nfc_ops nfc: constify nfc_hci_ops nfc: constify nfc_llc_ops nfc: constify nfc_digital_ops Documentation/driver-api/nfc/nfc-hci.rst | 2 +- drivers/nfc/fdp/fdp.c | 11 ++++++----- drivers/nfc/fdp/fdp.h | 2 +- drivers/nfc/fdp/i2c.c | 2 +- drivers/nfc/mei_phy.c | 2 +- drivers/nfc/mei_phy.h | 2 +- drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/microread/microread.c | 12 ++++++------ drivers/nfc/microread/microread.h | 6 +++--- drivers/nfc/nfcmrvl/main.c | 2 +- drivers/nfc/nfcsim.c | 2 +- drivers/nfc/nxp-nci/core.c | 2 +- drivers/nfc/pn533/pn533.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/pn544/pn544.c | 13 ++++++------ drivers/nfc/pn544/pn544.h | 7 ++++--- drivers/nfc/port100.c | 2 +- drivers/nfc/s3fwrn5/core.c | 7 +++---- drivers/nfc/s3fwrn5/nci.c | 8 +------- drivers/nfc/s3fwrn5/nci.h | 2 +- drivers/nfc/st-nci/core.c | 5 +++-- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st-nci/ndlc.c | 6 +++--- drivers/nfc/st-nci/ndlc.h | 8 ++++---- drivers/nfc/st-nci/spi.c | 2 +- drivers/nfc/st-nci/vendor_cmds.c | 2 +- drivers/nfc/st21nfca/core.c | 6 +++--- drivers/nfc/st21nfca/i2c.c | 6 +++--- drivers/nfc/st21nfca/st21nfca.h | 4 ++-- drivers/nfc/st21nfca/vendor_cmds.c | 2 +- drivers/nfc/st95hf/core.c | 2 +- drivers/nfc/trf7970a.c | 2 +- drivers/nfc/virtual_ncidev.c | 2 +- include/net/nfc/digital.h | 4 ++-- include/net/nfc/hci.h | 6 +++--- include/net/nfc/nci_core.h | 12 ++++++------ include/net/nfc/nfc.h | 8 ++++---- net/nfc/core.c | 2 +- net/nfc/digital_core.c | 4 ++-- net/nfc/hci/core.c | 6 +++--- net/nfc/hci/llc.c | 2 +- net/nfc/hci/llc.h | 6 +++--- net/nfc/hci/llc_nop.c | 2 +- net/nfc/hci/llc_shdlc.c | 2 +- net/nfc/nci/core.c | 25 ++++++++++++------------ net/nfc/netlink.c | 2 +- 46 files changed, 108 insertions(+), 112 deletions(-)