mtd: devices: docg3: Remove unnecessary (void*) conversions
Pointer variables of (void*) type do not require type cast. Signed-off-by: Su Hui <suhui@nfschina.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230529015011.38811-1-suhui@nfschina.com
This commit is contained in:
parent
e1666cfd78
commit
259b4d4c13
@ -1599,7 +1599,7 @@ static void doc_unregister_sysfs(struct platform_device *pdev,
|
|||||||
*/
|
*/
|
||||||
static int flashcontrol_show(struct seq_file *s, void *p)
|
static int flashcontrol_show(struct seq_file *s, void *p)
|
||||||
{
|
{
|
||||||
struct docg3 *docg3 = (struct docg3 *)s->private;
|
struct docg3 *docg3 = s->private;
|
||||||
|
|
||||||
u8 fctrl;
|
u8 fctrl;
|
||||||
|
|
||||||
@ -1621,7 +1621,7 @@ DEFINE_SHOW_ATTRIBUTE(flashcontrol);
|
|||||||
|
|
||||||
static int asic_mode_show(struct seq_file *s, void *p)
|
static int asic_mode_show(struct seq_file *s, void *p)
|
||||||
{
|
{
|
||||||
struct docg3 *docg3 = (struct docg3 *)s->private;
|
struct docg3 *docg3 = s->private;
|
||||||
|
|
||||||
int pctrl, mode;
|
int pctrl, mode;
|
||||||
|
|
||||||
@ -1658,7 +1658,7 @@ DEFINE_SHOW_ATTRIBUTE(asic_mode);
|
|||||||
|
|
||||||
static int device_id_show(struct seq_file *s, void *p)
|
static int device_id_show(struct seq_file *s, void *p)
|
||||||
{
|
{
|
||||||
struct docg3 *docg3 = (struct docg3 *)s->private;
|
struct docg3 *docg3 = s->private;
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
mutex_lock(&docg3->cascade->lock);
|
mutex_lock(&docg3->cascade->lock);
|
||||||
@ -1672,7 +1672,7 @@ DEFINE_SHOW_ATTRIBUTE(device_id);
|
|||||||
|
|
||||||
static int protection_show(struct seq_file *s, void *p)
|
static int protection_show(struct seq_file *s, void *p)
|
||||||
{
|
{
|
||||||
struct docg3 *docg3 = (struct docg3 *)s->private;
|
struct docg3 *docg3 = s->private;
|
||||||
int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high;
|
int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high;
|
||||||
|
|
||||||
mutex_lock(&docg3->cascade->lock);
|
mutex_lock(&docg3->cascade->lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user