]> git.baikalelectronics.ru Git - kernel.git/commit
staging: zram: Rename module parameter
authorNitin Gupta <ngupta@vflare.org>
Mon, 13 Feb 2012 04:04:45 +0000 (23:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2012 04:11:54 +0000 (20:11 -0800)
commitf3a6d2f8a1fb51a6b670a3e76f550c825a9c538a
tree454c9b405ed98f9bc4f2d98fa36818eb1e7224ef
parent10c6670a1783d8f25b226a89d74853a186b8c77f
staging: zram: Rename module parameter

zram accepts number of devices to be created
as a module parameter. This was renamed from
num_devices to zram_num_devices (without updating
the documentation!) since num_devices was declared
as a non-static global variable, polluting the global
namespace. Now, we declare it as a static variable
and revert back the name change.

The documentation (zram.txt) already mentions
num_devices as the module parameter name.

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c
drivers/staging/zram/zram_drv.h
drivers/staging/zram/zram_sysfs.c