1. 08 Jun, 2024 23 commits
    • Andrew Davis's avatar
      hwmon: (mcp3021) Remove use of i2c_match_id() · f1230f75
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-23-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      f1230f75
    • Andrew Davis's avatar
      hwmon: (max6697) Remove use of i2c_match_id() · de5fb06c
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-22-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      de5fb06c
    • Andrew Davis's avatar
      hwmon: (max1668) Remove use of i2c_match_id() · 495e6a9c
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-21-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      495e6a9c
    • Andrew Davis's avatar
      hwmon: (max16065) Remove use of i2c_match_id() · 5a71654b
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-20-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      5a71654b
    • Andrew Davis's avatar
      hwmon: (lm95234) Remove use of i2c_match_id() · e2791bdf
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-19-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      e2791bdf
    • Andrew Davis's avatar
      hwmon: (lm90) Remove use of i2c_match_id() · 711e2e4f
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-18-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      711e2e4f
    • Andrew Davis's avatar
      hwmon: (lm85) Remove use of i2c_match_id() · 4cfd3cee
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-17-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      4cfd3cee
    • Andrew Davis's avatar
      hwmon: (lm83) Remove use of i2c_match_id() · 9339bed9
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-16-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      9339bed9
    • Andrew Davis's avatar
      hwmon: (lm78) Remove use of i2c_match_id() · e49d1a1d
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-15-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      e49d1a1d
    • Andrew Davis's avatar
      hwmon: (lm75) Remove use of i2c_match_id() · 5178911d
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-14-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      5178911d
    • Andrew Davis's avatar
      hwmon: (lm63) Remove use of i2c_match_id() · cbc9b408
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-13-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      cbc9b408
    • Andrew Davis's avatar
      hwmon: (ina2xx) Remove use of i2c_match_id() · 8b839699
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-12-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      8b839699
    • Andrew Davis's avatar
      hwmon: (fschmd) Remove use of i2c_match_id() · 945e71d5
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-11-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      945e71d5
    • Andrew Davis's avatar
      hwmon: (f75375s) Remove use of i2c_match_id() · 72fdab6b
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-10-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      72fdab6b
    • Andrew Davis's avatar
      hwmon: (ds1621) Remove use of i2c_match_id() · 698d692c
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-9-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      698d692c
    • Andrew Davis's avatar
      hwmon: (dme1737) Remove use of i2c_match_id() · 9072777d
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-8-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      9072777d
    • Andrew Davis's avatar
      hwmon: (aht10) Remove use of i2c_match_id() · 941421c9
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-7-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      941421c9
    • Andrew Davis's avatar
      hwmon: (adt7475) Remove use of i2c_match_id() · 732d2624
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-6-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      732d2624
    • Andrew Davis's avatar
      hwmon: (ads7828) Remove use of i2c_match_id() · ec675563
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-5-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      ec675563
    • Andrew Davis's avatar
      hwmon: (adm1031) Remove use of i2c_match_id() · 0f1874f8
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-4-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      0f1874f8
    • Andrew Davis's avatar
      hwmon: (adm1021) Remove use of i2c_match_id() · 884369b2
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-3-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      884369b2
    • Andrew Davis's avatar
      hwmon: (ad7418) Remove use of i2c_match_id() · 244f1664
      Andrew Davis authored
      The function i2c_match_id() is used to fetch the matching ID from
      the i2c_device_id table. This is often used to then retrieve the
      matching driver_data. This can be done in one step with the helper
      i2c_get_match_data().
      
      This helper has a couple other benefits:
       * It doesn't need the i2c_device_id passed in so we do not need
         to have that forward declared, allowing us to remove those or
         move the i2c_device_id table down to its more natural spot
         with the other module info.
       * It also checks for device match data, which allows for OF and
         ACPI based probing. That means we do not have to manually check
         those first and can remove those checks.
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Link: https://lore.kernel.org/r/20240403203633.914389-2-afd@ti.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      244f1664
    • Krzysztof Kozlowski's avatar
      hwmon: lm70: simplify with spi_get_device_match_data() · b1ea8f7a
      Krzysztof Kozlowski authored
      Use spi_get_device_match_data() helper to simplify a bit the driver.
      Also kernel_ulong_t type is preferred for kernel code over uintptr_t
      (needed for the cast).
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Link: https://lore.kernel.org/r/20240606142515.132504-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      b1ea8f7a
  2. 04 Jun, 2024 6 commits
  3. 29 May, 2024 5 commits
  4. 26 May, 2024 5 commits
  5. 25 May, 2024 1 commit
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-05-25-09-13' of... · 9b62e02e
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-05-25-09-13' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "16 hotfixes, 11 of which are cc:stable.
      
        A few nilfs2 fixes, the remainder are for MM: a couple of selftests
        fixes, various singletons fixing various issues in various parts"
      
      * tag 'mm-hotfixes-stable-2024-05-25-09-13' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        mm/ksm: fix possible UAF of stable_node
        mm/memory-failure: fix handling of dissolved but not taken off from buddy pages
        mm: /proc/pid/smaps_rollup: avoid skipping vma after getting mmap_lock again
        nilfs2: fix potential hang in nilfs_detach_log_writer()
        nilfs2: fix unexpected freezing of nilfs_segctor_sync()
        nilfs2: fix use-after-free of timer for log writer thread
        selftests/mm: fix build warnings on ppc64
        arm64: patching: fix handling of execmem addresses
        selftests/mm: compaction_test: fix bogus test success and reduce probability of OOM-killer invocation
        selftests/mm: compaction_test: fix incorrect write of zero to nr_hugepages
        selftests/mm: compaction_test: fix bogus test success on Aarch64
        mailmap: update email address for Satya Priya
        mm/huge_memory: don't unpoison huge_zero_folio
        kasan, fortify: properly rename memintrinsics
        lib: add version into /proc/allocinfo output
        mm/vmalloc: fix vmalloc which may return null if called with __GFP_NOFAIL
      9b62e02e