Skip to content

Commit 64df2ec

Browse files
fhaverkampgregkh
authored andcommitted
GenWQE: Remove sysfs entry for driver version
A special sysfs entry to display the driver version is not needed. We left the driver version and adjusted it to the naming a lot of other drivers use. The information can be retrieved by using modinfo genwqe_card. modinfo genwqe_card will provide the same information. Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 95a8825 commit 64df2ec

5 files changed

Lines changed: 4 additions & 13 deletions

File tree

‎drivers/misc/genwqe/card_base.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ MODULE_AUTHOR("Joerg-Stephan Vogt <jsvogt@de.ibm.com>");
4848
MODULE_AUTHOR("Michal Jung <mijung@de.ibm.com>");
4949

5050
MODULE_DESCRIPTION("GenWQE Card");
51-
MODULE_VERSION(DRV_VERS_STRING);
51+
MODULE_VERSION(DRV_VERSION);
5252
MODULE_LICENSE("GPL");
5353

5454
static char genwqe_driver_name[] = GENWQE_DEVNAME;

‎drivers/misc/genwqe/card_ddcb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ int genwqe_init_debug_data(struct genwqe_dev *cd, struct genwqe_debug_data *d)
740740
}
741741

742742
len = sizeof(d->driver_version);
743-
snprintf(d->driver_version, len, "%s", DRV_VERS_STRING);
743+
snprintf(d->driver_version, len, "%s", DRV_VERSION);
744744
d->slu_unitcfg = cd->slu_unitcfg;
745745
d->app_unitcfg = cd->app_unitcfg;
746746
return 0;

‎drivers/misc/genwqe/card_debugfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static int genwqe_info_show(struct seq_file *s, void *unused)
323323
" Base Clock : %u MHz\n"
324324
" Arch/SVN Release: %u/%llx\n"
325325
" Bitstream : %llx\n",
326-
GENWQE_DEVNAME, DRV_VERS_STRING, dev_name(&pci_dev->dev),
326+
GENWQE_DEVNAME, DRV_VERSION, dev_name(&pci_dev->dev),
327327
genwqe_is_privileged(cd) ?
328328
"Physical" : "Virtual or no SR-IOV",
329329
cd->card_idx, slu_id, app_id,

‎drivers/misc/genwqe/card_sysfs.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ static ssize_t type_show(struct device *dev, struct device_attribute *attr,
9191
}
9292
static DEVICE_ATTR_RO(type);
9393

94-
static ssize_t driver_show(struct device *dev, struct device_attribute *attr,
95-
char *buf)
96-
{
97-
return sprintf(buf, "%s\n", DRV_VERS_STRING);
98-
}
99-
static DEVICE_ATTR_RO(driver);
100-
10194
static ssize_t tempsens_show(struct device *dev, struct device_attribute *attr,
10295
char *buf)
10396
{
@@ -256,7 +249,6 @@ static struct attribute *genwqe_attributes[] = {
256249
&dev_attr_next_bitstream.attr,
257250
&dev_attr_curr_bitstream.attr,
258251
&dev_attr_base_clock.attr,
259-
&dev_attr_driver.attr,
260252
&dev_attr_type.attr,
261253
&dev_attr_version.attr,
262254
&dev_attr_appid.attr,
@@ -268,7 +260,6 @@ static struct attribute *genwqe_attributes[] = {
268260
};
269261

270262
static struct attribute *genwqe_normal_attributes[] = {
271-
&dev_attr_driver.attr,
272263
&dev_attr_type.attr,
273264
&dev_attr_version.attr,
274265
&dev_attr_appid.attr,

‎drivers/misc/genwqe/genwqe_driver.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <asm/byteorder.h>
3737
#include <linux/genwqe/genwqe_card.h>
3838

39-
#define DRV_VERS_STRING "2.0.21"
39+
#define DRV_VERSION "2.0.25"
4040

4141
/*
4242
* Static minor number assignement, until we decide/implement

0 commit comments

Comments
 (0)