Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2385882pxv; Sat, 24 Jul 2021 14:50:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxig4dF9V25a6tK4f66MlB5ScNWjyP1+m3ApUC7CJ72gfGzCaTyLfAkitWBicDoAd6bQC+ X-Received: by 2002:a17:906:8301:: with SMTP id j1mr10614264ejx.0.1627163454270; Sat, 24 Jul 2021 14:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627163454; cv=none; d=google.com; s=arc-20160816; b=fwEd0shh0HA+PlHD/uBn/cQBEeUrzYOG4rNYiiufrRSpmwu7GSSrTJwv1iYHpyRZME 6V4URGx9LV+MPGfmBU51evPCKF/lRei81rmQ8TGBP8qBV0UefKo3z7WtDwrbP9QSPkCr GwweJWSgMEDB7UUqp8j40PIsQV/CLcGKXYtOmio4pmug12qG//svwerX0uHXFr1gjRvY rgduezOTOdO1XxQzL42h6uiOZgwWkzLg+FPAHaGfut2lsuNL/QyVrmYGOQtbRPQ5AyYI JD1tGbX6577Ja8sJ450VblqjlWO2eXFc1h6be3Ds9Yg3xiIZHXwJtm0VAWJkV1tnMYxr BQlg== 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:to:from:dkim-signature; bh=G9KCxkZ1DdC15NET5kZk+LZOMEIZ/z14F2Hvsqu6jDI=; b=dM+H2ikE2X6u5c6VFgjixVzNOy+0p6Zx6vwYT470aJcECbwSEYKzyB9wUX5HeyCKsM MKUgQS1/I65NuJQPbcop5vXBAAI6Gv2LTTbQ649clcg2WyLrT6lTDymL0j3NJl9XJ1JI /unPB/HKrf1vnULg6lE9oSbZ67ID0oZ5+ZDInBJb8+mltg258VoOC5tehA7/lG+BCxSC Pa5C4Z0yh8gEw1fIgRVE3mtR6zTf3Fq4nDXdUBxTTYCQmn7oKefmDNvMzyDsQ/wSBaGi jM8VSnfHe4g4OV7K/bJkcu3CJJzpmpJNSZcos2/UIcSzVXsVIdpBAydxTSXRyCZIVSMn Gnrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ZJU0cdpC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si36281856ejx.355.2021.07.24.14.50.31; Sat, 24 Jul 2021 14:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ZJU0cdpC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbhGXVHo (ORCPT + 99 others); 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-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-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(-) -- 2.27.0