1-Wire bus drivers for v6.5

1. Several older cleanups and minor improvements like dropping redundant
    match function, fixing indentation and typos, simplifying sysfs
    attribute show, removing redundant variable initializations, using max()
    instead of open-coding it and constifying pointer to
    struct hwmon_channel_info.
 
 2. w1_therm: fix inverted lock handling causing spurious temperature
    reads.
 
 3. sgi: Use strscpy() over strlcpy().
 
 4. w1 bus fixes:
    - Correct missing OF node reference put in error path.
    - Correct iterating over master device list while removing items from
      it.
    - Don't use loop iterator past the loop.
 -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCgAuFiEE3dJiKD0RGyM7briowTdm5oaLg9cFAmR40IQQHGtyemtAa2Vy
 bmVsLm9yZwAKCRDBN2bmhouD16ZID/9p9Al0AS1ersxBEXsinKN6sJTex+IU+bRY
 641LjQEAYmLveSD/rHpBiw13d9ux90KJ7TXHn7WgZv8XcO3BT4xg48ryYVbvZwah
 SXbmUFrLsPepHML744RdI0VQIc+K/ubn0JhmoHVfjODSnzGhUrzL70AIvHg+nCMF
 zm3CuORHnaXgSWZ2UYi0CuDxx2pTeor/dfkNZJtj0QjIjSIWCG5HIKTyJoQY8h60
 UmyC+4usLrNtLouR19JAk+TyMzbiyF0yHkDFrpsNbIEVvYYSZ6vH84X5xCMX/p6X
 TOm8oEgv5or2icQj+DyWHAIguW2CskWyBJOLPcCfZevtVtMOocKpteFhs+PV2WdS
 mcRLRhitFx0WmOwnB4lSfG1ecqC1KJfxyhfKT6rI48EV02zvgWbqR9rHc2dZXMt/
 1WRKMY90Ldjo00wc6JQF+NolnEV1V79FtyBlG7YqgR5UZkTvny305dMBy1s1Jmo8
 RwuvxYmLSIgY9ajDJSH9OeKYRdZfNom7vP3gjQe+WJKTHsSCoAavypwIbzjsPUmL
 LRKFOotPucNEg8RGTzEFdlEr80roNWGFs/ssI0VkjZ075Sql67zufINm24malXEC
 9Zm3h++e3dMfr/TFYkD4t6E4YfS4D+c32Gjw4FApYqd+pB20wVeNFpMLov8zNIiL
 3VjMrwt4cw==
 =cSvm
 -----END PGP SIGNATURE-----

Merge tag 'w1-drv-6.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-w1 into char-misc-next

Krzysztof writes:

1-Wire bus drivers for v6.5

1. Several older cleanups and minor improvements like dropping redundant
   match function, fixing indentation and typos, simplifying sysfs
   attribute show, removing redundant variable initializations, using max()
   instead of open-coding it and constifying pointer to
   struct hwmon_channel_info.

2. w1_therm: fix inverted lock handling causing spurious temperature
   reads.

3. sgi: Use strscpy() over strlcpy().

4. w1 bus fixes:
   - Correct missing OF node reference put in error path.
   - Correct iterating over master device list while removing items from
     it.
   - Don't use loop iterator past the loop.

* tag 'w1-drv-6.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-w1:
  w1: Replace usage of found with dedicated list iterator variable
  w1: therm: constify pointers to hwmon_channel_info
  w1: Add missing of_node_put() in w1.c
  w1: no need to initialise statics to 0
  w1: ds2438: remove redundant initialization of variable crc
  w1: w1_therm: fix typo in comment
  w1: w1_therm: Use max() instead of doing it manually
  w1: fix loop in w1_fini()
  w1: remove redundant initialization to variable result
  w1: Simplify the atribute show
  w1: Fix Kconfig indentation
  w1: sgi: move from strlcpy with unused retval to strscpy
  w1: Remove driver match function
  w1: w1_therm: fix locking behavior in convert_t
This commit is contained in:
Greg Kroah-Hartman 2023-06-01 18:53:51 +01:00
commit dbf87ab2ea
5 changed files with 42 additions and 58 deletions