Skip to content

Commit 5c7bfa1

Browse files
mjruhlij-intel
authored andcommitted
platform/x86/intel/pmt: correct types
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>
1 parent 147c18d commit 5c7bfa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/platform/x86/intel/pmt/crashlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static ssize_t
138138
enable_show(struct device *dev, struct device_attribute *attr, char *buf)
139139
{
140140
struct intel_pmt_entry *entry = dev_get_drvdata(dev);
141-
int enabled = !pmt_crashlog_disabled(entry);
141+
bool enabled = !pmt_crashlog_disabled(entry);
142142

143143
return sprintf(buf, "%d\n", enabled);
144144
}
@@ -169,7 +169,7 @@ static ssize_t
169169
trigger_show(struct device *dev, struct device_attribute *attr, char *buf)
170170
{
171171
struct intel_pmt_entry *entry;
172-
int trigger;
172+
bool trigger;
173173

174174
entry = dev_get_drvdata(dev);
175175
trigger = pmt_crashlog_complete(entry);

0 commit comments

Comments
 (0)