From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [PATCH net-next 2/5] net: dsa: add slave notify helper Date: Thu, 12 Oct 2017 15:55:45 -0700 Message-ID: References: <20171012225156.20758-1-vivien.didelot@savoirfairelinux.com> <20171012225156.20758-3-vivien.didelot@savoirfairelinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Andrew Lunn To: Vivien Didelot , netdev@vger.kernel.org Return-path: In-Reply-To: <20171012225156.20758-3-vivien.didelot@savoirfairelinux.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Both DSA slave create and destroy functions call call_dsa_notifiers with > respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same > dsa_notifier_register_info structure. > > Wrap this in a dsa_slave_notify helper so prevent cluttering these > functions. > > Signed-off-by: Vivien Didelot Much nicer, thanks! Reviewed-by: Florian Fainelli -- Florian