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 080A3C7618E for ; Wed, 26 Apr 2023 16:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241418AbjDZQRe (ORCPT ); Wed, 26 Apr 2023 12:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241410AbjDZQRb (ORCPT ); Wed, 26 Apr 2023 12:17:31 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1AB772BB; Wed, 26 Apr 2023 09:17:30 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1prhpE-0005lh-2Q; Wed, 26 Apr 2023 18:17:00 +0200 Date: Wed, 26 Apr 2023 17:15:12 +0100 From: Daniel Golle To: Vladimir Oltean Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Richard van Schagen , Richard van Schagen , Frank Wunderlich , Bartel Eerdekens , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next 04/24] net: dsa: mt7530: properly support MT7531AE and MT7531BE Message-ID: References: <20230425082933.84654-1-arinc.unal@arinc9.com> <20230425082933.84654-5-arinc.unal@arinc9.com> <20230426143944.s5vmhloepa3yodrj@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230426143944.s5vmhloepa3yodrj@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 26, 2023 at 05:39:44PM +0300, Vladimir Oltean wrote: > On Wed, Apr 26, 2023 at 02:07:45PM +0100, Daniel Golle wrote: > > On Wed, Apr 26, 2023 at 11:12:09AM +0300, Arınç ÜNAL wrote: > > > On 25.04.2023 18:04, Daniel Golle wrote: > > > > On Tue, Apr 25, 2023 at 11:29:13AM +0300, arinc9.unal@gmail.com wrote: > > > > > From: Arınç ÜNAL > > > > > > > > > > Introduce the p5_sgmii pointer to store the information for whether port 5 > > > > > has got SGMII or not. > > > > > > > > The p5_sgmii your are introducing to struct mt7530_priv is a boolean > > > > variable, and not a pointer. > > > > > > I must've meant to say field. > > > > Being just a single boolean variable also 'field' would not be the right > > word here. We use 'field' as in 'bitfield', ie. usually disguised integer > > types in which each bit has an assigned meaning. > > "field" is a perfectly legal name for a member of a C structure. > https://en.wikipedia.org/wiki/Struct_(C_programming_language) > Not to be confused with bitfield. Right, thank you for pointing that out. Must have slipped off my mind that all this is inside a struct, of course...