]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: olpc_dcon: style fixes
authorDhananjay Balan <mail@dbalan.in>
Mon, 24 Apr 2017 13:15:53 +0000 (15:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 10:07:24 +0000 (12:07 +0200)
 removes hardcoded function name and uses __func__ to print info.

Signed-off-by: Dhananjay Balan <mail@dbalan.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c

index 684815c987898f14bc2ac30b7897b4ec2f14154b..f7f3a780ec1061f34c9488fcbd78ce97ef7d9943 100644 (file)
@@ -290,7 +290,7 @@ static void dcon_source_switch(struct work_struct *work)
 
        switch (source) {
        case DCON_SOURCE_CPU:
-               pr_info("dcon_source_switch to CPU\n");
+               pr_info("%s to CPU\n", __func__);
                /* Enable the scanline interrupt bit */
                if (dcon_write(dcon, DCON_REG_MODE,
                               dcon->disp_mode | MODE_SCAN_INT))
@@ -330,7 +330,7 @@ static void dcon_source_switch(struct work_struct *work)
        {
                ktime_t delta_t;
 
-               pr_info("dcon_source_switch to DCON\n");
+               pr_info("%s to DCON\n", __func__);
 
                /* Clear DCONLOAD - this implies that the DCON is in control */
                pdata->set_dconload(0);