Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1099267pxx; Fri, 30 Oct 2020 01:52:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbpeYhpRdyvLc3IIJTGyFATIaQUGRR7B2/2ciD4K95Ey+e4tu+EpJjnsUcW/IN0jAbTIXs X-Received: by 2002:a17:906:eb48:: with SMTP id mc8mr1465796ejb.254.1604047948623; Fri, 30 Oct 2020 01:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604047948; cv=none; d=google.com; s=arc-20160816; b=YTU5nXpjSwoFlpfCn/q/uD5czJr/6gixG0+7ZjEY3np5YW3//LE2y5MkqegrYVFIq6 47FySVkwH4c1SrYYTLldf1xdYcRBeEkuVutIxbuvjm3o1T8P/wpmNmSrMWpyDXF2B90N iN22y75EYRv8bLDkGGBEzKV82K8wLSkA1YvGz7pNyGeDw4r+sRgXoDCXI+rxWGj67zNy LsdPQrHLrFRR+t+Qow+PFQC97P2RAETeK8f+4BxIAYvJPqTc4k5sYHA79OFgZRgqVDf0 KHvY5+N8I2yuMLX7eez5IwAwAE8ReTWIkvSto/p3QWsCnp3l8Ddbp+CYESbI4KZrekqt RQFg== 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=VTW5VFayDATPBEqTqyFx6iSuWdbsjlIpQNSD+DGkvoc=; b=ZC6vZIvI1rkbSgbkTwb3JFygkl9OfvCPWELVnTwSRY9dq1eCen/ObFxBHiKmYk47/8 +ku2Xy5DjYSkonV3tk3pe/w2f0d/VpN0+q6mKtoEK/tkxqb8vcZgCyB0Cx0PFY3/AXtI BaRzDw1q7c5/qJ734nimR2b/rbLR06CS1DllqSOdNcTNuNMt9xb+U3UOzo1+mbFY4ZK0 nRvmOzePDsZtwnYm4leH+k4dZBPjSU+gVM1j780/T9TNfwnqM+hG7hap5NdKP0v74R0l kTzaDi7C+lFPzZ+mj8sN4AUJIDSZBtSR/pUTJBak+WySvQ5Y0Ykg3miWL9xOGxsGrUsY X3zQ== 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 gy8si3527285ejb.451.2020.10.30.01.52.06; Fri, 30 Oct 2020 01:52:28 -0700 (PDT) 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 S1726137AbgJ3IuZ (ORCPT + 99 others); Fri, 30 Oct 2020 04:50:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:6945 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgJ3IuZ (ORCPT ); Fri, 30 Oct 2020 04:50:25 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CMwWp0Kpwz70HS; Fri, 30 Oct 2020 16:31:34 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 30 Oct 2020 16:31:24 +0800 From: Luo Jiaxing To: , , CC: , , , , , , , , , , , Subject: [PATCH v2 0/5] Introduce a new helper marco DEFINE_SHOW_STORE_ATTRIBUTE at seq_file.c Date: Fri, 30 Oct 2020 16:31:57 +0800 Message-ID: <1604046722-15531-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 marco for read-write file too. So we try to add this macro to help decrease code duplication. 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