Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp508962pxj; Wed, 2 Jun 2021 04:57:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn/JlZUYMdQsGNSjwsGnlgTqv4/ubAbG5O6JfUSUZd1Cg07TTZFGluNEwIYhcXkWjPLdOp X-Received: by 2002:a05:6e02:1546:: with SMTP id j6mr26660495ilu.125.1622635060929; Wed, 02 Jun 2021 04:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622635060; cv=none; d=google.com; s=arc-20160816; b=BoUw5gr3Bhd2cnH99baeowXUX0hfJ46ZH5jPbNh7yeqHoj4ktwIU0bUdL4S/8Hhjx6 pjQGXyRy7LzBmE5Y9tUw/tbUucAQQnnppEPuS8o9Qlhia+2bPDongtJzfB/PsaVoh9Iz +d+CS02BAZBA8wpbfLJr0m8qY3AVzocjktuI+kMjr18WeNOCaRPG7GaORaXCIVLNjXu2 Ylf2EZBdDeyXbupKHBRD2+r5swt4ZpQV0hyDRx5kL/bZOD1lQOF2gUDJZaUpyIfnnATC 6lzmUmBD5GR4zSZDB3m659BSAYsoAo28v3AlpYCVwmXiKaPHO6lG+vnpW4hqsZoUpPEk OqDw== 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:cc:to:from; bh=nSsUJFrfJ2tbhtyYsXX81DKMNHnwHEYXqXHytdqnk5A=; b=sc9SntwuqCB/F/7jaNPbBc2kHnvBdPnqc1uVK9KQ2f3cTz/AwIMC02074OS6perm0r /eu3PM0XOz+C0ecZlMOWSjE9qN/2UTfwX6o+fT+cCbjjcVKOvcmyqEBv/Jgn7pJ3ngne T2oEHhWXoRyIM1pR+aqBeC0KseXItoMi/3QvVhwdVRd+hnrl44O7owEYgmjCJHI6nPcz ne8wDds/tZHW1X/xSv7SoZgULisVzxDORKoquBE/oV+snuvIGDZ7xkWy/ksFOOvimv8E FEQiO/2rszB9VT56I3MVi6qGaTQPwdUDsyxevGdd4WTFE4ghkoyUf1FWv0O3Sm7yqhdL 8bEg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si18815132ioi.33.2021.06.02.04.57.28; Wed, 02 Jun 2021 04:57:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbhFBLpl (ORCPT + 99 others); Wed, 2 Jun 2021 07:45:41 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2962 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhFBLpk (ORCPT ); Wed, 2 Jun 2021 07:45:40 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Fw6Y513pjz68WK; Wed, 2 Jun 2021 19:40:57 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 2 Jun 2021 19:43:55 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 2 Jun 2021 19:43:54 +0800 From: Zhen Lei To: Lee Jones , patches , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH 0/9] mfd: use DEVICE_ATTR_* macro to simplify code Date: Wed, 2 Jun 2021 19:43:30 +0800 Message-ID: <20210602114339.11223-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DEVICE_ATTR_RO marks ReadOnly file, DEVICE_ATTR_RW marks ReadWrite file, etc.. it's clearer than DEVICE_ATTR. Zhen Lei (9): mfd: wm831x: use DEVICE_ATTR_RO macro mfd: ucb1x00-assabet: use DEVICE_ATTR_RO macro mfd: timberdale: use DEVICE_ATTR_RO macro mfd: sm501: use DEVICE_ATTR_RO macro mfd: pcf50633: use DEVICE_ATTR_ADMIN_RO macro mfd: kempld-core: use DEVICE_ATTR_RO macro mfd: janz-cmodio: use DEVICE_ATTR_RO macro mfd: intel_soc_pmic_bxtwc: use DEVICE_ATTR_ADMIN_RW macro mfd: ab8500-core: use DEVICE_ATTR_RO/RW macro drivers/mfd/ab8500-core.c | 33 +++++++++++++++--------------- drivers/mfd/intel_soc_pmic_bxtwc.c | 20 +++++++++--------- drivers/mfd/janz-cmodio.c | 6 +++--- drivers/mfd/kempld-core.c | 19 ++++++++--------- drivers/mfd/pcf50633-core.c | 12 +++++------ drivers/mfd/sm501.c | 8 ++++---- drivers/mfd/timberdale.c | 6 +++--- drivers/mfd/ucb1x00-assabet.c | 2 +- drivers/mfd/wm831x-otp.c | 6 +++--- 9 files changed, 55 insertions(+), 57 deletions(-) -- 2.26.0.106.g9fadedd