soc: qcom: irq-helper: Change the sysfs print function
Update the size of snprintf function to be PAGE_SIZE, in order to display the sysfs entry correctly. CRs-Fixed: 1054946 Change-Id: I75050cb8730f42bc601530b7505e32ec95cf88c0 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
This commit is contained in:
parent
2e45ea7281
commit
1cfce723f4
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ static ssize_t show_deploy(struct kobject *kobj, struct attribute *attr,
|
||||||
{
|
{
|
||||||
struct irq_helper *irq = to_irq_helper(kobj);
|
struct irq_helper *irq = to_irq_helper(kobj);
|
||||||
|
|
||||||
return snprintf(buf, sizeof(irq->deploy), "%u\n", irq->deploy);
|
return snprintf(buf, PAGE_SIZE, "%u\n", irq->deploy);
|
||||||
}
|
}
|
||||||
IRQ_HELPER_ATTR(irq_blacklist_on, 0444, show_deploy, NULL);
|
IRQ_HELPER_ATTR(irq_blacklist_on, 0444, show_deploy, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue