From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 893031FF611; Tue, 24 Dec 2024 16:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735057727; cv=none; b=iEa8rHSOjoIJYUB5BAK3PfhMPNPEA5KADaU8zY6tQBwG8Qbl39q4eK4BS72DKGYjLp/miWNPoNQr1+PBnA5sKKpa8naxuUZ/Y04SRlUWFycFBDE2aI1l6JSZAP2+R30lZZqWO2JPdUcYIz/J5jxuPrA36eY5zpqiTBVZJnCwvdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735057727; c=relaxed/simple; bh=Y2Z/sX7zIWVVTBzvgeRydb+NMPOhH7fJwtvn0Ra7VJ0=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e+BcTy6EqeGIqbcOcjuhgL5svpWGinbTqQ4ekEa4bhpGdsyMsu1qpC4WmlUcAEbw4+BGspnbU6x18JjrtsQk3aLn8QZ+Lr+T3VQKFfQtrLJm1itzQKF5CbmWUIMv6zxQebqu9oP758rjygnY+j27965KpcALTOgtlIoIveaq2sM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4YHgLH3PjSz6K6Nl; Wed, 25 Dec 2024 00:28:23 +0800 (CST) Received: from frapeml500008.china.huawei.com (unknown [7.182.85.71]) by mail.maildlp.com (Postfix) with ESMTPS id 990E8140391; Wed, 25 Dec 2024 00:28:43 +0800 (CST) Received: from localhost (10.48.156.150) by frapeml500008.china.huawei.com (7.182.85.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 24 Dec 2024 17:28:42 +0100 Date: Tue, 24 Dec 2024 16:28:40 +0000 From: Jonathan Cameron To: Zijun Hu CC: Greg Kroah-Hartman , "Rafael J. Wysocki" , Tejun Heo , Josef Bacik , Jens Axboe , Boris Burkov , Davidlohr Bueso , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , , , , , Zijun Hu Subject: Re: [PATCH v5 8/8] driver core: Move two simple APIs for finding child device to header Message-ID: <20241224162840.00004ff5@huawei.com> In-Reply-To: <20241224-class_fix-v5-8-9eaaf7abe843@quicinc.com> References: <20241224-class_fix-v5-0-9eaaf7abe843@quicinc.com> <20241224-class_fix-v5-8-9eaaf7abe843@quicinc.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500012.china.huawei.com (7.191.174.4) To frapeml500008.china.huawei.com (7.182.85.71) On Tue, 24 Dec 2024 21:37:27 +0800 Zijun Hu wrote: > From: Zijun Hu > > The following two APIs are for finding child device, and both only have > one line code in function body. > device_find_child_by_name() > device_find_any_child() > > Move them to header as static inline function. > > Signed-off-by: Zijun Hu Reviewed-by: Jonathan Cameron