Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5268340rwd; Mon, 12 Jun 2023 02:29:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kFFQ69Z559wEvnQj1Yet3bPuV0GX2RP0obDvSF3+PUbgGcguMoO8uYIsgudwokgKnvALv X-Received: by 2002:a17:907:1c1f:b0:982:21a1:c4e0 with SMTP id nc31-20020a1709071c1f00b0098221a1c4e0mr1351800ejc.56.1686562183377; Mon, 12 Jun 2023 02:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686562183; cv=none; d=google.com; s=arc-20160816; b=Y9qZTWhNpVt0TMfpt9iBnIXeleUr1bIJ6opO442Zkj01eGi5x8UF3CxWvAgoIodLvE 8Yb9hPBHvItcKGbpBCBKbeF6vao8XoYqquf91okVT0jdTmCQqgX27QETlRSPHS5LAwXL IkAOuMUFlvjhtOLMJC01UKy/7q/uahPS7MPWqVB6NmzkYSX74zXDuUeSERvdv7pjF8qh gj4tJoXMIbsEVcSZESLGLnsI0Y4xyU8kQKxFdXQerg9s9uPyB64nYcG1Zb9zFVFRLeWV BUB2PSmV5Vp5STIcn6Ct4CwtPfV/yEXfp0hsGL/qySj+wCahDZDdIYbhU0ohtUdodVZo 9aMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=utqGP2W40rOyFOTTsq9lsKAdOFTT6bP2FgIOk6d0Ew4=; b=dfeeCHnh42wLUdYTY32iH8v1mNCWDeaKvSvmbN0sd55k9KYr5koYQEzSwrGCWyxDr5 3Ua7qSXSqKUbEbtepwBsoN5IzlciFot65QoTpw8S/fsjFgHtKndHSM35FI3JrHZHRLcZ d2DQKM5DFn2Do1hriLC/MVYf+fTmNBftUYL7u77KibmxiSTD1ZQzyHkDdKGxRMitSrt0 yzGl6t+u+2g5ijBU/OrqZWhWwq+smATlov3oyTUOP0OUtTkaq/baYXPEoX3zuMNsWiPe M5L2KcDDIz46z6iTGV7SnOsSx12vCykh/Q5zKX26eazImERAqbdWaWI210QvWJH0b2Fh Dgig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WGivlqAB; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170906950f00b00978acf8b44esi4844905ejx.707.2023.06.12.02.29.19; Mon, 12 Jun 2023 02:29:43 -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=@intel.com header.s=Intel header.b=WGivlqAB; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233224AbjFLI7h (ORCPT + 99 others); Mon, 12 Jun 2023 04:59:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233238AbjFLI7E (ORCPT ); Mon, 12 Jun 2023 04:59:04 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB684C15; Mon, 12 Jun 2023 01:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686560186; x=1718096186; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xy2e3u2eLop2iTdpDgrwak2FZeN59pMzNKD71Og9rzQ=; b=WGivlqABS8heX5+NbLPfapvXY215MwfyFlk9uZXkp3mSWYs5KVSQA85a lnHt6qL0UzadoQMPdh5W5ZwiGelVpe5dAof8xyKPCEr79hwSUDOkI3Sbl LBjjf47WZbtdMbgeL217T0nva7Pn4/aZUikWPnBfRD3ENide6KzbITVYK GCAE9oJJeoW+HS8wSvxkmeIeHujSjnQEXCqxAY/UMGy+o0FndOnva9OsA /deT7c/sWlFxnUvM7BfpoCcZT0mmAPOx5nvXje/5nL8UsJA4eCF+9p7Za oWgAZY/Ks4yHJisq1yaV6189RHLYL+tZHcV2VwP4CQUYW8ieWVQuqM2kW g==; X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="361333984" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="361333984" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 00:57:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="705293664" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="705293664" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 00:57:31 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id B6663120BE1; Mon, 12 Jun 2023 10:57:28 +0300 (EEST) Date: Mon, 12 Jun 2023 07:57:28 +0000 From: Sakari Ailus To: Andy Shevchenko Cc: Damien Le Moal , Serge Semin , Greg Kroah-Hartman , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Hans de Goede , Jens Axboe , "Rafael J. Wysocki" , Len Brown , Daniel Scally , Heikki Krogerus Subject: Re: [PATCH v2 2/3] device property: Implement device_is_compatible() Message-ID: References: <20230609154900.43024-1-andriy.shevchenko@linux.intel.com> <20230609154900.43024-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230609154900.43024-3-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Hi Andy, On Fri, Jun 09, 2023 at 06:48:59PM +0300, Andy Shevchenko wrote: > Some users want to use the struct device pointer to see if the > device is compatible in terms of Open Firmware specifications, > i.e. if it has a 'compatible' property and it matches to the > given value. Provide inline helper for the users. > > Signed-off-by: Andy Shevchenko Reviewed-by: Sakari Ailus -- Sakari Ailus