From mboxrd@z Thu Jan 1 00:00:00 1970 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 B2D88C4338F for ; Sat, 24 Jul 2021 21:48:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98D5960E90 for ; Sat, 24 Jul 2021 21:48:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbhGXVHo (ORCPT ); Sat, 24 Jul 2021 17:07:44 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:58406 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhGXVHm (ORCPT ); Sat, 24 Jul 2021 17:07:42 -0400 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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 04BF03F35C 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-f70.google.com with SMTP id b13-20020a056402278db029039c013d5b80so2803255ede.7 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=QpGIwWBkXgAEmxpPlWADmNFQgaQ/mDFZnDiDlpJ2tGwScD6yVlBXOyKX5tR4uY37XQ cKtpCiYKIu1GvjhpLifXCNi9goAvmFqR+KGAOJfCbGq4WfN0Z4j1pOrv5DXpoa5KaeRG FYf9dv+ELpjQoJB1T+kAfEZwn9H62vUmLeNBQGPqDa5FNbo8aGlrpweXy5YfY72DyWai wqHl8YwhgX5En+tOmYp6hx+DnH3XsNyZiOGvKuTthqRmg5MZUc9nvc7q1tpyBi6DxlVY eCQSCDOf91/d8h49nuh1Zj6UDckb9LI/xazCDfU42tm4w/kfzG34zFwLXhFHZHqJcl76 pqEQ== X-Gm-Message-State: AOAM5330Jhxaaux9Ghj14vjdChp9Rscr4tKqpM1g1K2sbylljM+64a5X AJg62v9ErQBxBcyqbrhU3KjMuV57fAKWlrJPwsmCE1WO2db25EJBvJdzfzL7EjN3tUFWjubkzYr WssHD9HaDjmVVdl2TJNRE+hlNK+0eu4Nzmb2FqtBktQ== X-Received: by 2002:a17:906:8047:: with SMTP id x7mr46589ejw.453.1627163286816; 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.27.0