|
@@ -157,7 +157,7 @@ static ssize_t dgrp_node_state_show(struct device *c,
|
|
|
|
|
|
if (!c)
|
|
if (!c)
|
|
return 0;
|
|
return 0;
|
|
- nd = (struct nd_struct *) dev_get_drvdata(c);
|
|
|
|
|
|
+ nd = dev_get_drvdata(c);
|
|
if (!nd)
|
|
if (!nd)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -174,7 +174,7 @@ static ssize_t dgrp_node_description_show(struct device *c,
|
|
|
|
|
|
if (!c)
|
|
if (!c)
|
|
return 0;
|
|
return 0;
|
|
- nd = (struct nd_struct *) dev_get_drvdata(c);
|
|
|
|
|
|
+ nd = dev_get_drvdata(c);
|
|
if (!nd)
|
|
if (!nd)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -192,7 +192,7 @@ static ssize_t dgrp_node_hw_version_show(struct device *c,
|
|
|
|
|
|
if (!c)
|
|
if (!c)
|
|
return 0;
|
|
return 0;
|
|
- nd = (struct nd_struct *) dev_get_drvdata(c);
|
|
|
|
|
|
+ nd = dev_get_drvdata(c);
|
|
if (!nd)
|
|
if (!nd)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -212,7 +212,7 @@ static ssize_t dgrp_node_hw_id_show(struct device *c,
|
|
|
|
|
|
if (!c)
|
|
if (!c)
|
|
return 0;
|
|
return 0;
|
|
- nd = (struct nd_struct *) dev_get_drvdata(c);
|
|
|
|
|
|
+ nd = dev_get_drvdata(c);
|
|
if (!nd)
|
|
if (!nd)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -232,7 +232,7 @@ static ssize_t dgrp_node_sw_version_show(struct device *c,
|
|
if (!c)
|
|
if (!c)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- nd = (struct nd_struct *) dev_get_drvdata(c);
|
|
|
|
|
|
+ nd = dev_get_drvdata(c);
|
|
if (!nd)
|
|
if (!nd)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -311,7 +311,7 @@ static ssize_t dgrp_tty_state_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -328,7 +328,7 @@ static ssize_t dgrp_tty_baud_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -348,7 +348,7 @@ static ssize_t dgrp_tty_msignals_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -377,7 +377,7 @@ static ssize_t dgrp_tty_iflag_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -396,7 +396,7 @@ static ssize_t dgrp_tty_cflag_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -415,7 +415,7 @@ static ssize_t dgrp_tty_oflag_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -434,7 +434,7 @@ static ssize_t dgrp_tty_digi_flag_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -453,7 +453,7 @@ static ssize_t dgrp_tty_rxcount_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -472,7 +472,7 @@ static ssize_t dgrp_tty_txcount_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|
|
@@ -493,7 +493,7 @@ static ssize_t dgrp_tty_name_show(struct device *d,
|
|
|
|
|
|
if (!d)
|
|
if (!d)
|
|
return 0;
|
|
return 0;
|
|
- un = (struct un_struct *) dev_get_drvdata(d);
|
|
|
|
|
|
+ un = dev_get_drvdata(d);
|
|
if (!un)
|
|
if (!un)
|
|
return 0;
|
|
return 0;
|
|
ch = un->un_ch;
|
|
ch = un->un_ch;
|