]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
platform/x86/intel/pmt: correct types
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Sun, 13 Jul 2025 17:29:38 +0000 (13:29 -0400)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Jul 2025 14:39:01 +0000 (17:39 +0300)
A couple of local variables do not match the return types of some of
the functions.

Update the mismatched types to match.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Link: https://lore.kernel.org/r/20250713172943.7335-9-michael.j.ruhl@intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmt/crashlog.c

index 440d2045e90d036d47f6846ee588e6b06461e908..881f4abdae14f205dbc5223d75c71a9efff14a1b 100644 (file)
@@ -138,7 +138,7 @@ static ssize_t
 enable_show(struct device *dev, struct device_attribute *attr, char *buf)
 {
        struct intel_pmt_entry *entry = dev_get_drvdata(dev);
-       int enabled = !pmt_crashlog_disabled(entry);
+       bool enabled = !pmt_crashlog_disabled(entry);
 
        return sprintf(buf, "%d\n", enabled);
 }
@@ -169,7 +169,7 @@ static ssize_t
 trigger_show(struct device *dev, struct device_attribute *attr, char *buf)
 {
        struct intel_pmt_entry *entry;
-       int trigger;
+       bool trigger;
 
        entry = dev_get_drvdata(dev);
        trigger = pmt_crashlog_complete(entry);