We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75341b3 commit b7cb430Copy full SHA for b7cb430
drivers/bus/bt1-apb.c
@@ -325,9 +325,9 @@ static ssize_t inject_error_store(struct device *dev,
325
* Either dummy read from the unmapped address in the APB IO area
326
* or manually set the IRQ status.
327
*/
328
- if (!strncmp(data, "nodev", 5))
+ if (sysfs_streq(data, "nodev"))
329
readl(apb->res);
330
- else if (!strncmp(data, "irq", 3))
+ else if (sysfs_streq(data, "irq"))
331
regmap_update_bits(apb->regs, APB_EHB_ISR, APB_EHB_ISR_PENDING,
332
APB_EHB_ISR_PENDING);
333
else
0 commit comments