summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorIvan Bornyakov2019-07-10 22:45:18 +0200
committerGreg Kroah-Hartman2019-08-16 10:12:37 +0200
commit6b8f93b5a4f78bed2bd8373987cf47614a415c45 (patch)
tree73b385eef717fa45f7a7c542c3aff33fe2998f08 /drivers/staging
parentiio: adc: max9611: Fix misuse of GENMASK macro (diff)
downloadkernel-qcow2-linux-6b8f93b5a4f78bed2bd8373987cf47614a415c45.tar.gz
kernel-qcow2-linux-6b8f93b5a4f78bed2bd8373987cf47614a415c45.tar.xz
kernel-qcow2-linux-6b8f93b5a4f78bed2bd8373987cf47614a415c45.zip
staging: gasket: apex: fix copy-paste typo
commit 66665bb9979246729562a09fcdbb101c83127989 upstream. In sysfs_show() case-branches ATTR_KERNEL_HIB_PAGE_TABLE_SIZE and ATTR_KERNEL_HIB_SIMPLE_PAGE_TABLE_SIZE do the same. It looks like copy-paste mistake. Signed-off-by: Ivan Bornyakov <brnkv.i1@gmail.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20190710204518.16814-1-brnkv.i1@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/gasket/apex_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c
index c747e9ca4518..0cef1d6d2e2b 100644
--- a/drivers/staging/gasket/apex_driver.c
+++ b/drivers/staging/gasket/apex_driver.c
@@ -538,7 +538,7 @@ static ssize_t sysfs_show(struct device *device, struct device_attribute *attr,
break;
case ATTR_KERNEL_HIB_SIMPLE_PAGE_TABLE_SIZE:
ret = scnprintf(buf, PAGE_SIZE, "%u\n",
- gasket_page_table_num_entries(
+ gasket_page_table_num_simple_entries(
gasket_dev->page_table[0]));
break;
case ATTR_KERNEL_HIB_NUM_ACTIVE_PAGES: