lkml.org 
[lkml]   [2023]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/2] nvmem: core: Expose cells through sysfs
    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

    \
     
     \ /
      Last update: 2023-05-23 18:59    [W:3.060 / U:0.336 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site