Merge branch 'overlayfs-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mszere...
[cascardo/linux.git] / drivers / input / keyboard / gpio_keys.c
index 883d6ae..ddf4045 100644 (file)
@@ -190,7 +190,7 @@ static ssize_t gpio_keys_attr_show_helper(struct gpio_keys_drvdata *ddata,
                __set_bit(bdata->button->code, bits);
        }
 
-       ret = bitmap_scnlistprintf(buf, PAGE_SIZE - 2, bits, n_events);
+       ret = scnprintf(buf, PAGE_SIZE - 1, "%*pbl", n_events, bits);
        buf[ret++] = '\n';
        buf[ret] = '\0';