Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1773254ybh; Fri, 17 Jul 2020 00:10:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPqyUuLDFGv6RREtyA0tadYZZWQVAULzSSYkbzs0x2+JFhdFfR2DN5WJFRm+y1gfXwowCd X-Received: by 2002:a17:906:54a:: with SMTP id k10mr7236664eja.480.1594969815578; Fri, 17 Jul 2020 00:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594969815; cv=none; d=google.com; s=arc-20160816; b=0IupY17SKeRJ+6G77gKaJqYKqHVnpO3eVXr+Y+He1YADwIGn8JKtqo1w3aJXzXcvCr XxT87wYDHpAujnWzBhbcxrpNVn+bRYFWJtGIvu19h900Dbq5a1F6CxRTc2N6DQAsDg4J OuyoemXCwzyJE0uaKqBRtcNzZ9JKR7rKaQGaMpH/IBVByB5gw5AC21HC6124cae/CxsV fUaVZO8sU2LTKLs0Cin/NlomAXuDuFZl4uhNfdTAF9VsnGusoflffe3QbkofPzgcLfOO VOF/CiQogr2Vy+WTa5z4GjK5vB5OwaaxIqmbWjAifzKnLSwdgXt7xWz95OXXSiy8RX5j gZnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CPnX6ZZ4pxkd9TAEZP+nlom1WGP6ShX2uzkhMxmoCgs=; b=Q6t2T4jfPesm+NTVlq/gbjRad/k+XcU20MfoYUKXof7N1MbVPBWbpjKuo2Azc+2ZV8 MpUOKqWqN7LR7ZK2Oh2oVoaN3fAtUo3QtNC+tUgRNKitj6pvTXO6HLPlGqqTuqAa9fFK x8e8rzfCuz/CZm0pVMbMy3PNZIhHroIQX6Si7xE7fq7eSiglrx3FzERTEXCcKBBpwrop zL29lHYIEErEdadzSc8IawvGLjDDJqsRkmWMm9zKWmDS1ax8Ap94gWqbGcVQVCZctHU6 xdUGVuN60QzzIP/nUw8xfhJia57hGh6HSrM17+8AHgyJVTtUzn/kcZj1YvsPi8BCUFal u/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="Z0/isLNm"; 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 n20si4260182ejs.158.2020.07.17.00.09.52; Fri, 17 Jul 2020 00:10:15 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b="Z0/isLNm"; 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 S1726852AbgGQHHJ (ORCPT + 99 others); Fri, 17 Jul 2020 03:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbgGQHHJ (ORCPT ); Fri, 17 Jul 2020 03:07:09 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2214C061755 for ; Fri, 17 Jul 2020 00:07:08 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id e4so7257971oib.1 for ; Fri, 17 Jul 2020 00:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CPnX6ZZ4pxkd9TAEZP+nlom1WGP6ShX2uzkhMxmoCgs=; b=Z0/isLNmTG17gmG6L59e06uZwFWTkG8667jfHIAozBpa6HGgY8MTxvN87ov9noGknf ROx8mOGckDSd85/k3criF7VUrhME58WXh95iPmWNWTP5goFt+mjfIpABBJN15TPoCp+Z cs3/jV1pYvFMgfXabtoWtWc1XCsFSstQFrnsg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CPnX6ZZ4pxkd9TAEZP+nlom1WGP6ShX2uzkhMxmoCgs=; b=LQne0namIaxKTyQIw4RwrUvAcaqIKeqg66L4Vy/HNcqk7RyhrxIia7EbZXIyPhGBpF sfQf49adJe8qZglEAjAwGHSRqbnLcW1RlV5lvsyM8AgLFQfDeUY5IhWfltIjcbBJUBJZ HPLYIiuEjAAAwIls0ElP1eNoPBw2UTi4VpuhrtrKh43PQmFjJvdH0sxLLz3T/W1wMDxm lwWQRxDTFf8lMBTd2elLCDY+yR9CHXds8pXZs2neeRYPUmWtZPyETe8ZfrnGakB8duso 9Uchlf3930ekTGI6/Qt+yVdVYpoKQEYUzs5vbOMrIJ6j6a6i/KBJ21UMRz8be0jR9VsU vlLA== X-Gm-Message-State: AOAM530zM3gI2nTUp+6qvNfw8jA2E/sMHAHn08wA4TCtZBD+goQrxM9t UV9Yoom/t81TYV7VqQWR0TYZR/KUsIwsgvgJlt9xsQ== X-Received: by 2002:aca:da03:: with SMTP id r3mr6602701oig.14.1594969628090; Fri, 17 Jul 2020 00:07:08 -0700 (PDT) MIME-Version: 1.0 References: <20200716090333.13334-1-miaoqinglang@huawei.com> <20200717064017.GA76612@jamwan02-TSP300> In-Reply-To: <20200717064017.GA76612@jamwan02-TSP300> From: Daniel Vetter Date: Fri, 17 Jul 2020 09:06:57 +0200 Message-ID: Subject: Re: [PATCH -next] drm/komeda: Convert to DEFINE_SHOW_ATTRIBUTE To: "james qian wang (Arm Technology China)" Cc: Qinglang Miao , Mihail Atanassov , Greg Kroah-Hartman , Liviu Dudau , Linux Kernel Mailing List , dri-devel , nd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 8:40 AM james qian wang (Arm Technology China) wrote: > > On Thu, Jul 16, 2020 at 05:03:33PM +0800, Qinglang Miao wrote: > > From: Liu Shixin > > > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > > > Signed-off-by: Liu Shixin > > --- > > drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 13 +------------ > > 1 file changed, 1 insertion(+), 12 deletions(-) > > > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c > > index 0246b2e94..4a10e6b9e 100644 > > --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c > > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c > > @@ -41,18 +41,7 @@ static int komeda_register_show(struct seq_file *sf, void *x) > > return 0; > > } > > > > -static int komeda_register_open(struct inode *inode, struct file *filp) > > -{ > > - return single_open(filp, komeda_register_show, inode->i_private); > > -} > > - > > -static const struct file_operations komeda_register_fops = { > > - .owner = THIS_MODULE, > > - .open = komeda_register_open, > > - .read_iter = seq_read_iter, > > - .llseek = seq_lseek, > > - .release = single_release, > > -}; > > +DEFINE_SHOW_ATTRIBUTE(komeda_register); > > > > Hi Shixin & Qinglang > > Thanks for your patch. > > Reviewed-by: James Qian Wang > > Since your patch is not for drm-misc-next, so seems better > to leave it to you to merge it. :) I do think it's for drm-misc-next, what other tree would it be for? Some people put -next in their patch tag to differentiate from -fixes, so maintainers know what to do with the patch. It's also not part of a series, hence I think this is on you to apply it. Cheers, Daniel > > Thanks > James > > > #ifdef CONFIG_DEBUG_FS > > static void komeda_debugfs_init(struct komeda_dev *mdev) > > -- > > 2.17.1 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch