Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp466958pxb; Tue, 3 Nov 2020 04:31:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh2Ieqh0luwhM/OUIMMxw47SthwioBzrZIPgIv3iYqIa8MgDCL7fbW/7rRY5BaSmRZ7OYk X-Received: by 2002:a17:906:74c5:: with SMTP id z5mr19394313ejl.227.1604406694068; Tue, 03 Nov 2020 04:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604406694; cv=none; d=google.com; s=arc-20160816; b=QHXz4VqdagGEUtw1sb3Ff15fi6VUX/epPWFZNvl9q1XO89LZbnK4MLVKdDNl3bna6j q6T+QM/cKqNs7ZHY+1qpiWs6vM/7QftwKYBLWXNFdvo4Fl5RdkWzMvlVRPKOLcLYk/5N Pdu8DMAfIVZ/ZysEL9wbxJ2crtDJlaiG9HzCYOl9JgQZEOsADtTnGTJAWCdhXRQFcvRV xCoKZyqjx9Surzh5FyTDeNxWNmR4dtxLiBc/wiQqNWcSHYnIuAL6BFhqxTkO6muEUEf9 ebNTSFFsSUklzIoFkiyXf2tXL4PeSzvoCh6IOlnN7dFCqK33JdWl9qzPpJycRWeWD1EI RYpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=hVRsLa1rSipB/APshMXo7Ab10qAZFwPeTRkBzeo6VGI=; b=SSEQChOWd4VOXd8792XEe7y+xNr5H+xcWB4aXzd1GaLDE4goyVVWvLEWuPNsJfIvtM egX2pq3ar8UE5bH+QXjSa6h9lt4s6OlPURrtmTlE4JuiWdS/2h+q1ShkXOHlVsVL4Ptn UE28zNfJ/pK9w3ziGxeeYi7UZvNLY/2R4eJCHcVtJwss6woXG0Ck3hNZ2KktZu0Hef4i 5uBf1pS5I2ZZQtSynjxBxG3Ueh1nQkNn5hXFUrxIDfaLvzDbREwqeW9I3BA6EOLrgcI0 PsIU8u8658D0eN853TNoNZLvujSz0MCvHyOby8NdFXGiEbeSDHf6GXHQ1K2INOPM06cq 3OqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec23si12385497ejb.575.2020.11.03.04.31.11; Tue, 03 Nov 2020 04:31:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729101AbgKCM3m (ORCPT + 99 others); Tue, 3 Nov 2020 07:29:42 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7583 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbgKCM3Y (ORCPT ); Tue, 3 Nov 2020 07:29:24 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CQTcB1KBgzLsY7; Tue, 3 Nov 2020 20:29:14 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 20:29:08 +0800 From: Luo Jiaxing To: , , CC: , , , , , , , , , , , Subject: [PATCH v3 0/5] Introduce a new helper marco DEFINE_SHOW_STORE_ATTRIBUTE at seq_file.c Date: Tue, 3 Nov 2020 20:29:39 +0800 Message-ID: <1604406584-53926-1-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We already own DEFINE_SHOW_ATTRIBUTE() helper macro for defining attribute for read-only file, but we found many of drivers also want a helper macro for read-write file too. So we add this macro to help decrease code duplication. --- v1->v2: 1.Rename DEFINE_STORE_ATTRIBUTE() to DEFINE_SHOW_STORE_ATTRIBUTE(). v2->v3: 1.Fixed some spelling mistakes in commit. 2.Revised resumes are added for easy tracing. --- Luo Jiaxing (5): seq_file: Introduce DEFINE_SHOW_STORE_ATTRIBUTE() helper macro scsi: hisi_sas: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs scsi: qla2xxx: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs usb: dwc3: debugfs: Introduce DEFINE_SHOW_STORE_ATTRIBUTE drm/i915/display: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs .../gpu/drm/i915/display/intel_display_debugfs.c | 55 +-------- drivers/scsi/hisi_sas/hisi_sas_main.c | 135 +++------------------ drivers/scsi/qla2xxx/qla_dfs.c | 19 +-- drivers/usb/dwc3/debugfs.c | 52 +------- include/linux/seq_file.h | 15 +++ 5 files changed, 41 insertions(+), 235 deletions(-) -- 2.7.4