From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0A42C6FD1C for ; Wed, 22 Mar 2023 12:04:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjCVMEb (ORCPT ); Wed, 22 Mar 2023 08:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjCVMEa (ORCPT ); Wed, 22 Mar 2023 08:04:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE0FC2C646; Wed, 22 Mar 2023 05:04:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7CA68B81C29; Wed, 22 Mar 2023 12:04:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB29EC433EF; Wed, 22 Mar 2023 12:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1679486667; bh=8BY+CocL+shpE3CRqBHzJbs8TrkWQc6FVacFEoPl5tw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EMokyUJpGFQXmYE6VEQMDgoiQJSNhgQDO+rLWEmxMcB38aaDFBwFMA9LE0NpIcUUg p/Yubm1RFX9PgowsfOPS52OdTQN0U6avmtSXhg4/+5ZYXetKDHVy6/IYMu9DEV9JS5 ae30MTAudgUGW+xHSjIhtMJeCwwbwxAg4oo7updA= Date: Wed, 22 Mar 2023 13:04:24 +0100 From: Greg Kroah-Hartman To: Matti Vaittinen Cc: Matti Vaittinen , "Rafael J. Wysocki" , Brendan Higgins , David Gow , Andy Shevchenko , Heikki Krogerus , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Stephen Boyd , Maxime Ripard , Jonathan Cameron , linux-iio@vger.kernel.org Subject: Re: [PATCH v5 1/8] drivers: kunit: Generic helpers for test device creation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Wed, Mar 22, 2023 at 11:05:55AM +0200, Matti Vaittinen wrote: > --- /dev/null > +++ b/include/kunit/platform_device.h > @@ -0,0 +1,13 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#ifndef __KUNIT_PLATFORM_DEVICE__ > +#define __KUNIT_PLATFORM_DEVICE__ > + > +#include > + > +struct device; > + > +struct device *test_kunit_helper_alloc_device(struct kunit *test); > +void test_kunit_helper_free_device(struct kunit *test, struct device *dev); Why are you calling this a "platform_device" when it isn't a platform device at all? Why not just say "device.h" here? thanks, greg k-h