Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30108630rwd; Thu, 6 Jul 2023 00:39:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhIrbScaXUUtjeLSDwrrqahgrwhfbkRvrkuLIi6HKXAuAl5Kta6jOWR7OmQlXzQnmD7asm X-Received: by 2002:a17:902:d481:b0:1b7:c09d:3f7a with SMTP id c1-20020a170902d48100b001b7c09d3f7amr7169193plg.11.1688629186150; Thu, 06 Jul 2023 00:39:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688629186; cv=pass; d=google.com; s=arc-20160816; b=Gkw9OkFNg33LItbm3W1Vx5bF3hmDDf0hNds7jbpnFaxy1mHWCZo1J0QaZoBof2/6kT cdWwz6q95Q25mp7eJR0trm2JmDwBDnTu8fvUIiZD8/Ssr91p9K2Hqlkbw4O67YY14nUH ehPDTLN8e6deQ0Ma9LrczOt7kAhuM5Nv2RAE0n/n5LmWku2Xcr/axF4GGIcfg8O/Jkq7 eqs8nAZ2V+h5iMxnV6MVtjOc8OyfIgCGzKXsa7RwJDZR8ETK0KVL9+HdbV2HEDOCYRAi tDNSDVB4UWbSMiilzCcHOU995Y96EHjgMh6CJvc2RswRU0nUX/N3ywwYFbitKec+IEtI 66Uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=oIArpoztvLmwof0IqHw6DFvFFgtAcQlgNVZCMR8hHkM=; fh=LI6cJCDuVl9yMeOuUI69b1U/6elel2AXwfx2SWWsVk8=; b=RfIXYXttvuF+WM1go/FMMCh+T5rpaC6B1YsBaTaVQZLmP8mh9aA5yCccXUIDjqJpX7 LUrKxnWYdedg7P6dNcRyCCFHWZkWQKYE5r6PyC0bjvyNQiNcyvkbWtnXYjH4LZJ8rMG3 7e5+p1HojRc5pIVA4sCjxUH2MkyJZw2MVDY9KtOEGbsHFtYbScXxu76P6MXT+eV2DSNZ NDKLSDNjC/qPWjQp+je2wiOi2zpev7j2OUOMeI/tIjzSvEJq/W2VRXq446rSjqBuELjh oGiGI81leOfXyo5RiZlKtnJTeNYc+h1Dul+lDxk55g7Y7jSpXgZO/5cyIS6xlpn8x82W /7dw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=WNFgNZAz; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902e80100b001b8698d619asi791071plg.602.2023.07.06.00.39.31; Thu, 06 Jul 2023 00:39:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=WNFgNZAz; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233761AbjGFH3X (ORCPT + 99 others); Thu, 6 Jul 2023 03:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233704AbjGFH3V (ORCPT ); Thu, 6 Jul 2023 03:29:21 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2123.outbound.protection.outlook.com [40.107.117.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E8321990 for ; Thu, 6 Jul 2023 00:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jMx5zXUgoKocmCmqrUFCE1X1gFDT8qdA3qaIlVkHjdXGZE4MTwyQ/gsLrw4YFmnj4JiSlAX2kEJ2jotVMFffamOXP02VQ02WEU3Ufup/RjWwnPLLJ+N+Qn8QotuH3bMrbJ40OxE9/Oq3s7Hf7+3qJeT1YLNbMBZ2qbAyd4c+KlW7ymh47fJThT6j0evLvuXFkqMJ18XjVyPgcEFMvDZLmXbuO6w25ZB9UbZie3MHXPnG7O9fFMjVQeWvHq53SrqHEAlYqomIyfr4bbokKiK+BqGVF+egJOhuJjPugOko8Kuwlqf2LR8y8OskNreFtVru6BSKqvH3DkOlYuLGFEEjng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oIArpoztvLmwof0IqHw6DFvFFgtAcQlgNVZCMR8hHkM=; b=e5cgeVNVR2h+nuZKei0692+8CX8/FW9pcWkD2EUpjEIKR4LZLQoWMAPDBcClXHm5wP8jpp3BEjZxpT+vGuCMubwaer7qEBV0Aqe6fsC4mUxk+z2HSFZYVSKB0hsbocbIvRWyqZSW34k8+JkJn/RD1rZwDJRdr2UpyW6qTLZjfF8EkHKz1BEOy/b/fMAYR8vyEBYbehnbrTuqlrkq8+UmffPFAYl9hbWw1g1RnJyRmnJ6v0V/es0XLnD7Cfeea5vYN97byONwOezqxFiPr5qLqX03l5UZIQGCPynRIDctZtGHJiNclm/B7VnSgDjd00uexgxHpQ0Hr1GtJdoIULS+nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oIArpoztvLmwof0IqHw6DFvFFgtAcQlgNVZCMR8hHkM=; b=WNFgNZAzwdSSC4H3GlWeQ2fTN80DldwEs7ySRPm6v7ZMRPZQOwScxhrWyIatPJm6IAaEoaIhbSe76qoNkZLHpgTfas4QaHjOIne2OdaNAV/qJg1nbamCv6EurAvI7acPWrmoEgQUE0RQdiKWr5xcgMGiLsb/qPPtWs9REJr+mVgdkIAig3710B/zP/zFJIdK+VO0wnNQsnEhiqZE6E3BHdqUOlRcLb322vBMbPBTgX9pcQ16NSSJGT3kji9ypbyieIyDVLCfhl4vo01U4195m6msrD87xDHeUVrYvwABffxhloT2oB6dEwBOm/4oPYGSOxvNu+BeWzV93sD/OlfKMg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB5288.apcprd06.prod.outlook.com (2603:1096:4:1dc::9) by SI2PR06MB4316.apcprd06.prod.outlook.com (2603:1096:4:155::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 07:29:11 +0000 Received: from SG2PR06MB5288.apcprd06.prod.outlook.com ([fe80::c2b:41ab:3b14:f920]) by SG2PR06MB5288.apcprd06.prod.outlook.com ([fe80::c2b:41ab:3b14:f920%7]) with mapi id 15.20.6565.016; Thu, 6 Jul 2023 07:29:11 +0000 From: Minjie Du To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Minjie Du , Stephen Rothwell , dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-kernel@vger.kernel.org (open list) Cc: opensource.kernel@vivo.com Subject: [PATCH v1] gpu: i915: display: Replace define function Date: Thu, 6 Jul 2023 15:28:59 +0800 Message-Id: <20230706072902.4845-1-duminjie@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0038.apcprd02.prod.outlook.com (2603:1096:4:1f6::15) To SG2PR06MB5288.apcprd06.prod.outlook.com (2603:1096:4:1dc::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB5288:EE_|SI2PR06MB4316:EE_ X-MS-Office365-Filtering-Correlation-Id: 16e44b62-9600-44a8-a7d1-08db7df2b11d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0EjXvCImAqksnQ6zn7tnhHGcw8E7buh/QRhqY+vkrNB7J6HYiZmA65mg0P72kckwXK5rKlwYauSs5yQ9GHIGz49f5JRJchSNBwUZ4/xIZHvOYur5fZwjfzkDmSIO15YThKN/qP4C7WjvE7Owa9omHbirHC1Df77phAza5wAtyxH1Hwpf3NdMnogjJOLwilVhBywF+QQX8YzqKggMYtfyvTaFnCgkGysgw1Md6bmm8KUu+Y+mVrk9c5v9JVhPdHKHQ/lpAOpWOxjAHIwmKSPP7cM4Cd4j+ikmQ3fHtUX+s/B6srSrYoHWAQlzLDUYTcfEtg9kd03tg+fyWl4PQaWFxLxsw7KkXoZOTDoLOe/f6j65QmjLFkC1Y/F47FEqpUV/jS+HoWsbVfAy/MnNKnmNxCVceF6Oz8OyjA1LK1mBkLkPqQXalpuuIlIJHWUEz+N4GK2WBBiOBCDGFhq9XBaDFLgdINXkKsbnlSx47xCVbPrDC6zUsK1aNAlLUIZ3f989nVUbhRIzzNreH5hssmEzYH8VWgrh3aLiyvOH7pcentPZw6ntvNu8lFl9lOTb5VGvr7NUfxMP8+w3qZH41g/KXW/0fJ8iEI00SbN09kUKF8DfGnCEbs9+lbNhOyBhrGX41Uy8bhewrAEihYtfPAgKPQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB5288.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(136003)(39860400002)(366004)(346002)(451199021)(38100700002)(38350700002)(66556008)(921005)(66476007)(2616005)(316002)(66946007)(5660300002)(8936002)(41300700001)(4326008)(86362001)(8676002)(2906002)(4744005)(6506007)(52116002)(186003)(107886003)(1076003)(6666004)(6486002)(83380400001)(26005)(478600001)(6512007)(36756003)(110136005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?J+6b7doOBhm5dNSXahmcZ1n6NgFlae+K/a5cPb0zezIcokv8GTu2W33rzh85?= =?us-ascii?Q?l/MIXq7gQ0G4gLe+YxAwtqmkqJVCkU6L0wuwdervYjlM3FNLlQnqs/j2Nw8f?= =?us-ascii?Q?gsYbO2Fyt+hbi6lrDpWHfKw+EddRnnUJzv6RNPInNVallUfqar+jIRXzxyEf?= =?us-ascii?Q?jnKxCKCZQt7sXhtLEfQzQfjNxfsT3AY7Ep7NrXaz4KyEBC/pck59/d3LYNS9?= =?us-ascii?Q?1Q+f6SP6Nav3tQ7y1BOvqCLWCAOkSsVbWi6EtiF6M0rnq/gnEuSHqsw3tOGJ?= =?us-ascii?Q?DBzD1iGQlbiax2ktRSnHqIdpwa8C/214cBqSkq+WZMd/LuQbtbRd3uXoAyMk?= =?us-ascii?Q?HdsOMwiEHSaemlVJjC2mrDY4AUabOawriuLYOfoLKmXd7Y9P2Lhuo5clo+w4?= =?us-ascii?Q?X5mX492NsTYmPJ7hB+WR/WjDq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?= =?us-ascii?Q?fsB9I0UerBtpccUM0emwvGAgkOtY9MFIdEDKvX6s8wdX131GlS8v15Hf482K?= =?us-ascii?Q?HkPyk3QN3Fy5X1yYeUM+nqcStvkq7nx7WI77d9rirtihvfrqgLnXClsW0+yN?= =?us-ascii?Q?VjbE9GBd97wjl4cv1jPX1Nq6O1SD89A/uCUVAxbXidDPwY61VpKyLhRSrYch?= =?us-ascii?Q?xtbB09LGiO5zEgE5YBqDdWQfL08cW7DH5RudTx+lW84FuJJCar/HIiJIHFPd?= =?us-ascii?Q?aNBXj/yzk+LN71AUoCcoQ9gKj/QS9TH3Py0MwIMm?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16e44b62-9600-44a8-a7d1-08db7df2b11d X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB5288.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 07:29:11.2780 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K1P9QWRIoJ9QYDAX6P7tovgzNcJiuVzEbT9Gj858p8bhCgvcE/biF33PZCAj1NVl9wBPHSZpPMxY6gpPNPI7Sw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4316 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE. Signed-off-by: Minjie Du --- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 56c17283b..822858f3e 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -2998,7 +2998,7 @@ i915_edp_psr_debug_get(void *data, u64 *val) return -ENODEV; } -DEFINE_SIMPLE_ATTRIBUTE(i915_edp_psr_debug_fops, +DEFINE_DEBUGFS_ATTRIBUTE(i915_edp_psr_debug_fops, i915_edp_psr_debug_get, i915_edp_psr_debug_set, "%llu\n"); -- 2.39.0