Skip to contentSkip to conversation

docs: fix typo in energy-model.rst

PATCH Applied Moon Hee Lee 2 participants 2 messages May 6, 2025 – May 9, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs: fix typo in energy-model.rst

Fixes a grammar issue ("than" -> "then") and changes "re-use" to "reuse" for consistency with modern spelling.

Changes since v1:
- Limited scope to .rst files excluding translations, using:
find Documentation/ \
-path Documentation/translations -prune -o \
-name '*.rst' -print | xargs codespell

---
 Documentation/power/energy-model.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/power/energy-model.rst +1 -1
index ada4938c37e5..490ddd483f46 100644
@@ -230,7 +230,7 @@ Drivers must provide a pointer to the allocated and initialized new EM
 and will be visible to other sub-systems in the kernel (thermal, powercap).
 The main design goal for this API is to be fast and avoid extra calculations
 or memory allocations at runtime. When pre-computed EMs are available in the
-device driver, than it should be possible to simply re-use them with low
+device driver, then it should be possible to simply reuse them with low
 performance overhead.
 
 In order to free the EM, provided earlier by the driver (e.g. when the module
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 20 lines · Moon Hee Lee

Fixes a grammar issue ("than" -> "then") and changes "re-use" to "reuse" for consistency with modern spelling.

Changes since v1:
- Limited scope to .rst files excluding translations, using:
find Documentation/ \
-path Documentation/translations -prune -o \
-name '*.rst' -print | xargs codespell

---
 Documentation/power/energy-model.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/power/energy-model.rst +0 -0
index ada4938c37e5..490ddd483f46 100644

Documentation/power/energy-model.rst Drivers must provide a pointer to the allocated and initialized new EM

Quoted 9 lines
Documentation/power/energy-model.rst +1 -2
@@ -230,7 +230,7 @@ Drivers must provide a pointer to the allocated and initialized new EM
 and will be visible to other sub-systems in the kernel (thermal, powercap).
 The main design goal for this API is to be fast and avoid extra calculations
 or memory allocations at runtime. When pre-computed EMs are available in the
-device driver, than it should be possible to simply re-use them with low
+device driver, then it should be possible to simply reuse them with low
 performance overhead.
 
 In order to free the EM, provided earlier by the driver (e.g. when the module
--

Applied as 6.16 material, thanks!