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 CC08BC7EE23 for ; Tue, 23 May 2023 16:59:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237881AbjEWQ7H (ORCPT ); Tue, 23 May 2023 12:59:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237894AbjEWQ7E (ORCPT ); Tue, 23 May 2023 12:59:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26D361B0 for ; Tue, 23 May 2023 09:58:55 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 439A060FCA for ; Tue, 23 May 2023 16:58:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 390AFC433EF; Tue, 23 May 2023 16:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684861134; bh=JDNhv474FZcy4Lz73KwYrRLVpRvuJfnJCY1u9fi55UI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R5iPf7eDMXEm36imF/7Lfrki1iXUhd39+DaAYPVRf54gIckmQ8JRcWRwF0Jngyh0B EQTyXsY5NyFiFrcK5YjVEx5Y4yewaBWshDqufRtdsF3XKHzUk6tExU/VBQV1DRfVJt iLM2hk7Hxe67ds25FKhVLLtgCkBd9WaG3XFggNgk= Date: Tue, 23 May 2023 17:58:51 +0100 From: Greg Kroah-Hartman To: Miquel Raynal Cc: Srinivas Kandagatla , Luka Perkov , Robert Marko , Thomas Petazzoni , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] nvmem: core: Expose cells through sysfs Message-ID: <2023052351-doze-purist-9780@gregkh> References: <20230523100239.307574-1-miquel.raynal@bootlin.com> <20230523100239.307574-3-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523100239.307574-3-miquel.raynal@bootlin.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23, 2023 at 12:02:39PM +0200, Miquel Raynal wrote: > +/* Cell attributes will be dynamically allocated */ > +static struct attribute_group nvmem_cells_group = { > + .name = "cells", > +}; > + > static const struct attribute_group *nvmem_dev_groups[] = { > &nvmem_bin_group, > + NULL, /* Reserved for exposing cells, if any */ Please don't do this, but rather use the is_visible callback to determine if it should be shown or not. thanks, greg k-h