linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] samples: configfs: refactor the configfs sample code
@ 2020-09-24 12:45 Bartosz Golaszewski
  2020-09-24 12:45 ` [PATCH 01/12] MAINTAINERS: add the sample directory to the configfs entry Bartosz Golaszewski
                   ` (12 more replies)
  0 siblings, 13 replies; 20+ messages in thread
From: Bartosz Golaszewski @ 2020-09-24 12:45 UTC (permalink / raw)
  To: Joel Becker, Christoph Hellwig; +Cc: linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Over at the GPIO sub-system we have a testing module (gpio-mockup) which
uses module params to instantiate simulated GPIO chips and debugfs to
control them. We want to switch to a more stable interface using configfs
to instantiate chips and sysfs to control them.

For that we need the feature that's well defined in the docs but currently
unimplemented - committable items. I started working on this but it won't
be ready for this release cycle.

In the meantime I also refactored the configfs samples a bit as I'll be
adding sample code for committable items. I thought that it won't hurt
to send the refactoring patches now for v5.10 so here it is. No logical
changes really, mostly just code quality and removing usage of deprecated
functions.

Bartosz Golaszewski (12):
  MAINTAINERS: add the sample directory to the configfs entry
  samples: configfs: order includes alphabetically
  samples: configfs: remove redundant newlines
  samples: configfs: drop unnecessary ternary operators
  samples: configfs: improve alignment of broken lines
  samples: configfs: fix alignment in item struct
  samples: configfs: replace simple_strtoul() with kstrtoint()
  samples: configfs: don't reinitialize variables which are already
    zeroed
  samples: configfs: prefer sizeof(*var) to sizeof(struct var_type)
  samples: configfs: consolidate local variables of the same type
  samples: configfs: don't use spaces before tabs
  samples: configfs: prefer pr_err() over bare printk(KERN_ERR

 MAINTAINERS                        |  1 +
 samples/configfs/configfs_sample.c | 78 +++++++++++-------------------
 2 files changed, 29 insertions(+), 50 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-10-08 14:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 12:45 [PATCH 00/12] samples: configfs: refactor the configfs sample code Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 01/12] MAINTAINERS: add the sample directory to the configfs entry Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 02/12] samples: configfs: order includes alphabetically Bartosz Golaszewski
2020-10-07 13:43   ` Christoph Hellwig
2020-10-08 13:23     ` Bartosz Golaszewski
2020-10-08 14:05       ` Christoph Hellwig
2020-09-24 12:45 ` [PATCH 03/12] samples: configfs: remove redundant newlines Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 04/12] samples: configfs: drop unnecessary ternary operators Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 05/12] samples: configfs: improve alignment of broken lines Bartosz Golaszewski
2020-10-07 13:44   ` Christoph Hellwig
2020-09-24 12:45 ` [PATCH 06/12] samples: configfs: fix alignment in item struct Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 07/12] samples: configfs: replace simple_strtoul() with kstrtoint() Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 08/12] samples: configfs: don't reinitialize variables which are already zeroed Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 09/12] samples: configfs: prefer sizeof(*var) to sizeof(struct var_type) Bartosz Golaszewski
2020-10-07 13:46   ` Christoph Hellwig
2020-09-24 12:45 ` [PATCH 10/12] samples: configfs: consolidate local variables of the same type Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 11/12] samples: configfs: don't use spaces before tabs Bartosz Golaszewski
2020-09-24 12:45 ` [PATCH 12/12] samples: configfs: prefer pr_err() over bare printk(KERN_ERR Bartosz Golaszewski
2020-10-06 10:40 ` [PATCH 00/12] samples: configfs: refactor the configfs sample code Bartosz Golaszewski
2020-10-07 13:46   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).