Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13288643rwl; Wed, 4 Jan 2023 06:14:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXsYSHM+Y7MQfaVRsekzsJU1HEhnaKyR3p0/1gj4ZBgQdmEqBhfx5LEmnlYvxAWFWInvRZ8+ X-Received: by 2002:a05:6402:685:b0:46b:4011:9863 with SMTP id f5-20020a056402068500b0046b40119863mr41316828edy.39.1672841669472; Wed, 04 Jan 2023 06:14:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672841669; cv=none; d=google.com; s=arc-20160816; b=fPmtn2GdnzqYaM9NdAJXKBy/t1TpxB8TDvB3jM4FKXIyAo9bJrvNAKM3iNoPnIrtdV l1qbAoeHe+FHj5rxYT7L5xH5KwVHhHIMokLmXhJUJVYx8V0zxM2dJxzKO6arkLiILpam ZlCifq7a7BOvIsVOlaTokIFG5w/cPgtbwapt4rrLYIf+TpCTJmFUbXIl4J+obMMdXvEY OXpIXXMY4NKQC2vXM3qOOpVR60HKYuEGRo69X7otsrGIkjQKp/EVuZ3i8BuMaEyeEErW nVj0ufjg5AtUWjePXpX4Z1ZrxA9AvggWTrcKjhwabvXW2OwvDwrXOBLHLqA6+3Rc9V/o SN3A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OHdu3q/F/vLwxgt0mrij72HFncDyWs+pHtkcOUkvnJo=; b=QD0oAlz263YdrIdo2fsl8q5YQWGHNiLZp44v4gkeANzXeReEMlrnV03c5ZnX8Xv4XJ APBZpVxSzTUEKgDw+m2zlfKcNrW0JO+aTsKbjLdsSuDy4ZlYuCA2IjhRvzjW33LQOwQn bYy9CB8BeuyQ+XMUnm5I1qXmEAMdsujRNEOaCUQ6PFvDTp292h1pa9TjbvL1eIDOi89k uoDIR0CKkzhrQENrUHdexRjQ7xgGSXwywYAHpugan6M1mc2rSNHwOPMmEJOFAVTpRk31 TlgIHnHdTCUTNl7qjskzwvOE3/iXob1nGHI3SkB6PBHNcVcu7xAew7GF6B9TYAqj+b0r vziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G0Zk036H; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020aa7da49000000b0046a7ad0bb17si27481961eds.586.2023.01.04.06.14.15; Wed, 04 Jan 2023 06:14:29 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=G0Zk036H; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239534AbjADOJC (ORCPT + 59 others); Wed, 4 Jan 2023 09:09:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239638AbjADOHI (ORCPT ); Wed, 4 Jan 2023 09:07:08 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1189739F87; Wed, 4 Jan 2023 06:06:39 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 806EBCE17BF; Wed, 4 Jan 2023 14:06:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F304C433D2; Wed, 4 Jan 2023 14:06:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672841195; bh=uarrwmHwSPbPDsDQUPiYN+x+cFA9g4HEYn3pRnZPD+s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G0Zk036Ho8UtTWfkc2MSjzM1PFi6td2zURO+S+n0PxECOtyshYdYocKvgCNjUkio/ hHZ6sqzLD9MahWJCYojPMsnOwkgMmeAN37XVfWKtnuIQnGe6FyWUaRm2RxcnmVMhTk 8TVfeahXXBRTr8zcksDhNjTRDTpf/yBA4aBtUxqc= Date: Wed, 4 Jan 2023 15:05:00 +0100 From: Greg KH To: Martin =?utf-8?B?WmHFpW92acSN?= Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mani@kernel.org, hemantk@codeaurora.org, quic_jhugo@quicinc.com, andersson@kernel.org, Michael.Srba@seznam.cz, arnd@arndb.de, dipenp@nvidia.com, bvanassche@acm.org, iwona.winiarska@intel.com, ogabbay@kernel.org, tzimmermann@suse.de, fmdefrancesco@gmail.com, jason.m.bills@linux.intel.com, jae.hyun.yoo@linux.intel.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Subject: Re: [PATCH 2/3] bus: add Wiegand bus driver Message-ID: References: <20230104133414.39305-1-m.zatovic1@gmail.com> <20230104133414.39305-3-m.zatovic1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230104133414.39305-3-m.zatovic1@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Wed, Jan 04, 2023 at 02:34:13PM +0100, Martin Zaťovič wrote: > +struct boardinfo { > + struct list_head list; > + struct wiegand_board_info board_info; > +}; > + > +static LIST_HEAD(board_list); > +static LIST_HEAD(wiegand_controller_list); Why are all of these needed at all? Shouldn't the driver core handle the bus list logic for you? Why do you need a separate static list as well? thanks, greg k-h