Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp576937pxb; Tue, 15 Feb 2022 22:38:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwR5EQakwfeiELg4fKaZ/Uez4XJHT69YXFarW6l9Py+UxMDn6GVsojnlTeg1nBBUIqwFHVL X-Received: by 2002:a17:90a:c24a:b0:1b9:90f5:3d1e with SMTP id d10-20020a17090ac24a00b001b990f53d1emr139670pjx.174.1644993513925; Tue, 15 Feb 2022 22:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644993513; cv=none; d=google.com; s=arc-20160816; b=GUzytfgK66mtb/PU0zRWlBeOVcGlL9pTY2yCzQmBF2bbsbCaqWJYnTPFNz7CX1YEx3 M2k+kNd+Dg6el/kP4D37aXquavCoXzubCu89aCBVLydxC4EY3yw6l4DTCNNFFG+cReFY lbuNi5UvFEL/isLTE0gTtVsEUqy34kiCmipiLElNPK+O7g64tsUQa6EZH2Qnz+CWwhcG W/ta7W3ko+4WEeMy3rdmwpDeGBsHrFI++d9lA5Qg58iGeP9VnFnEKVCP6pNuBK4HSNs0 FVECFeXVeLu1Vxs54C4CU1yjjgyFodnUTxsPa3nJF5jVkZ3kPLeYBnpChfVz2XWYdYbG eJOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hW7Dk9tGhtm3PjX3xpg71rPR9w4wdqKoGWicgwSmc90=; b=xaVYPuTMan6Oyoj9bKxASHW94egNSCkjzZ/1Obfy7Tg2Yf8oYDI5bBF6NCQHjJR0xa vLVnUcDK+1ivEgYuZZkyZvRalL2PkK6jZQW6oENSXepqHXhSF/TiPHgXR1Ut9pxVzNWt Z6q6Whx4hBqFOb5CVAcpoQQYTZXnbyX+QtQ6EiHtCN5HCKL0trdtd+//dXof1XHUNeT3 fjdcfrNXgM0ozm82qtK5uH8vbMcDIXFiLZqfkQRtK4VsBBfVvUBiQhRCYetEPl46Qy7G jdn1RKoCjsBCz2vN+PhbQZeywKKLfYS69BxXPALHT6/sR7IBNx7hY6dT6LNk9Npa6WgN jQ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=RM8lbqfX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n11si15856677pla.516.2022.02.15.22.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:38:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=RM8lbqfX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBEFD1928F8; Tue, 15 Feb 2022 22:28:57 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244147AbiBOUrK (ORCPT + 99 others); Tue, 15 Feb 2022 15:47:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbiBOUrI (ORCPT ); Tue, 15 Feb 2022 15:47:08 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58B6FD93; Tue, 15 Feb 2022 12:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644957995; bh=0OSbOP7dVuxah5dzxOSWPDpWQt+waq4IO/yrm245na0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=RM8lbqfXj4CquNffPjLDAk/zqsA2R7oPEntJIfErC/JFzifQUKiCCwI3sQ/AwS3UH u+PDvEN61F59Ofw1QXdQ7s99jAvoAWJRtsvl3CYAHnhMh1rMymay5Nv8yKR1A9xG1K XK+pIDDlkBrtJwgBGiQ/YPmKR4xRWeE8wNcYaJAw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.185.100]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MJE27-1naNTk1Cfr-00KivD; Tue, 15 Feb 2022 21:46:35 +0100 Message-ID: <7e60cd01-8afc-ddb5-a1bb-6e9f53ccfba5@gmx.de> Date: Tue, 15 Feb 2022 21:46:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev Content-Language: en-US To: Yong Wu , Greg Kroah-Hartman , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Cc: James Wang , Liviu Dudau , iommu@lists.linux-foundation.org, Matthias Brugger , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Joerg Roedel , Will Deacon , Arnd Bergmann , Laurent Pinchart , linux-mediatek@lists.infradead.org, Chun-Kuang Hu , linux-arm-kernel@lists.infradead.org, Stephen Boyd , AngeloGioacchino Del Regno , Hsin-Yi Wang , Robin Murphy , Tomasz Figa , srv_heupstream@mediatek.com, Rob Clark , Srinivas Kandagatla , Sebastian Reichel , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org References: <20220214060819.7334-1-yong.wu@mediatek.com> <20220214060819.7334-23-yong.wu@mediatek.com> From: Helge Deller In-Reply-To: <20220214060819.7334-23-yong.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:MjTT6/0mKscyzurmEJq+TRDLFWm722/o5oh1VceIWTDo9Su6z33 Uqcw4r79WPXMZ1MHVQ5YZwMpT3/LUtQYuMEKT1s4Qsw268nztXs8M1PHTdwFSaaX3fRCVHa I5hj8j+9RzGYlu8e8qiZ43jIdVRKdmD+CGxvzWPF1Cw57f4/4D8ejp1FysOEiqU6iTGSqwc ErfKQfh2UKAhLIHNSceWg== X-UI-Out-Filterresults: notjunk:1;V03:K0:EO1+Ylb+ev0=:HpXUahwDBxS2Q6GJ/UdQMa n+62M3husXUXoHxxs8AxzjuuYDkqIBegYnyeAV7YgP0Mle0rT21+2LEV21Cm/oK+NdFah8S9W CpzPyAZIRuU01jq211YudtbXnvFOMgwbjvey4rIl2NTTJUDs+3nbJ6EgXSJwHO77nbgaCNttA G+VtN7qVCXCtu780Msj9tZjo7C1oDNvtl1Z0DVM0OdyjyuO5D93T57PbebQJO+46L8tQ0bfg4 PClJhDBMO98xxmJRVp6iBSjNS7q7geteQaZ0ZJQVZhNyuKpKUNS7ESMvNsPEhSTzcXNJDdgSx Vq9g3AnCPk01P40v1QI4BqRKbdc93kQn/QMzvwnd6VKhhT5hOO0TqppV8u07Mwhznrax7VcRW +v1Ixw3WjKmrwEdG4wxBOsqT1dFC/6QoqorX3z1sqp7Ag6Ncwj2vZEjoNZ1YUThIr4BpD/vWq hjpVXVTw/vir74eHyvdnz2eZXfQD7YPWYiK3z1oTwSGkoUciP9hPqvp4WS1qWPD3Wx4UiMz4y 2dpK2641P1xHzfATt1y9hhMgc6vt9XFxpm9Ycl0uN+Nf/W9WIYa2fD+vPujh/CyO3jLklKrNP rhbT5NjDJGfC/AFaC2iH75aCY+P5r1pQZOBnvTunjmLUTuER4bhCqMQqM9G+WAIVA1mScRE7x z5RtmJWkKSwplc9SI/e09hsIAALu0cz7R3+T3vF1BUPB0RwiiTFPg2EbSOsu0l9GrJ8CkvoHP 6ajgPfPMXcn62tOWZWD9MMtunWjyjGeCeU0sZsO37FBgxO6O75XX5KNPo3ZtVKQ/rb45z2Rj6 BmFoOKHsV5p6ypFwr9d2I3zNEcl0DYDNBnMwKA/3QTkYeOJgYkBDK8DU7dxFOUM6q9OWcMRcY NoMQI8g/0H0GxrMHZA3BmETGV399e4Ve0zB9yhBv/cd9YdH0LKj0wm2/KEIbC/oPNQrOB040l zX8J1rybbjKBBzimlhU2e1yTmGHdV4geJl204qxFdDOHSN0uiAnzvI89ljAQcys4MdV9EpQSa NnChsjeiQrZB5ZntJzdsbaO7RJJahTHLc0+epBUeuUd6C0orPGZgiQsH8Kwcy4p8Uu6vZoYIV JC4pPsVjDwiUHc= X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On 2/14/22 07:08, Yong Wu wrote: > Use the common compare helper from component. > > Cc: Helge Deller > Cc: linux-omap@vger.kernel.org > Cc: linux-fbdev@vger.kernel.org > Signed-off-by: Yong Wu Applied to the fbdev for-next branch. Thanks! Helge > drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/= fbdev/omap2/omapfb/dss/dss.c > index a6b1c1598040..45b9d3cf3860 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c > @@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_comp= onent_ops =3D { > .unbind =3D dss_unbind, > }; > > -static int dss_component_compare(struct device *dev, void *data) > -{ > - struct device *child =3D data; > - return dev =3D=3D child; > -} > - > static int dss_add_child_component(struct device *dev, void *data) > { > struct component_match **match =3D data; > @@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *= dev, void *data) > if (strstr(dev_name(dev), "rfbi")) > return 0; > > - component_match_add(dev->parent, match, dss_component_compare, dev); > + component_match_add(dev->parent, match, component_compare_dev, dev); > > return 0; > } >