Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4323869pxb; Mon, 1 Feb 2021 19:47:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzofkTIIA1yPtp1mF/XcSaqS8HYkQCjlH1zEOlpKbTUPvCncNTaQfmBwurj6tCP9wpFS9Yn X-Received: by 2002:a17:906:2a8b:: with SMTP id l11mr20601616eje.1.1612237642555; Mon, 01 Feb 2021 19:47:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612237642; cv=none; d=google.com; s=arc-20160816; b=ySlga2ScQixHyUWABbPrtAx/ji3HSzsP16kKrEDkZqG1rWews/ILoRupnmpdK0p+1q mD8cRjk1crJ+3o0szqWhU27P8y5QzgPLwRVEbMNRa3NVIiHPXbW3M22vUkWwfgDUEuj9 9nQ4YNOOueoHyUkt/TgKlPTnjnq4BT1k5ilAc1yjf2sbTe5agegQkc88aZmIzzBzE1mE fl7ShIsT68//vsy+DFkXq2G+tASuvIl33bF6zSrOwnW4wWjw5HDZUycdY9vj09qYmdPz PmZysZnEjf9cp1+Ru3MbFnugBnqpV55NAZj9vzyaIN39ZrBQMH0fcmvPm8QLn4T69ypL UYqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=QrwO73qLtVmf//q2/RzDxUw8kcd1WjGgMQGmwT0WpF4=; b=PZPF3Mc2Wba4EjYiX9d3tt6bcBSzCWurzBa9w6U8tqjohPkfk/TBm5fbzEzzscLOMb xgBm6RIITCj8PjcRmo30i7thX0DP0JaPyBzDVDc+MdbehmXTAhWtSr4sDsjlIH7Vgwgj 5mujBsBu9TnpVoaa17lDrHb657uPchh77nB8KgLWsQV0kp37nAxfFul45S21tWNAzYP6 PtCrxB2Nk6evx9KwWybQiYL0AxtQEALc44XaGAzM+8Vp3zMenlWvwXpRA2m4w9PKVns/ YkuEZ0POJgEaRCpE13JPNLQnUbj7XCAQXhqFp0XdOpstdZFQ/QOe6oHi9RufMXJUNs2S OuOw== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si11354755ejn.107.2021.02.01.19.46.57; Mon, 01 Feb 2021 19:47:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231508AbhBBDo0 (ORCPT + 99 others); Mon, 1 Feb 2021 22:44:26 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:53557 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhBBDoZ (ORCPT ); Mon, 1 Feb 2021 22:44:25 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UNeCW-d_1612237412; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNeCW-d_1612237412) by smtp.aliyun-inc.com(127.0.0.1); Tue, 02 Feb 2021 11:43:40 +0800 From: Jiapeng Chong To: khilman@kernel.org Cc: tony@atomide.com, linux@armlinux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] arm: omap2: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Tue, 2 Feb 2021 11:43:31 +0800 Message-Id: <1612237411-115179-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./arch/arm/mach-omap2/pm-debug.c:171:0-23: WARNING: pwrdm_suspend_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/arm/mach-omap2/pm-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 919d35d..b43eab9 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -168,8 +168,8 @@ static int pwrdm_suspend_set(void *data, u64 val) return -EINVAL; } -DEFINE_SIMPLE_ATTRIBUTE(pwrdm_suspend_fops, pwrdm_suspend_get, - pwrdm_suspend_set, "%llu\n"); +DEFINE_DEBUGFS_ATTRIBUTE(pwrdm_suspend_fops, pwrdm_suspend_get, + pwrdm_suspend_set, "%llu\n"); static int __init pwrdms_setup(struct powerdomain *pwrdm, void *dir) { -- 1.8.3.1