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:
Runmin Wang 2016-08-16 11:00:34 -07:00
parent 2e45ea7281
commit 1cfce723f4

View file

@ -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);