Skip to content

Commit 5a805a7

Browse files
committed
auxdisplay: ht16k33: Move ht16k33_linedisp_ops down
We will need the update functions to be defined before ht16k33_linedisp_ops. Move the latter down in the code. No functional change intended. Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Robin van der Gracht <robin@protonic.nl> Tested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent ef2086a commit 5a805a7

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

drivers/auxdisplay/ht16k33.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -439,18 +439,6 @@ static void ht16k33_keypad_stop(struct input_dev *dev)
439439
disable_irq(keypad->client->irq);
440440
}
441441

442-
static void ht16k33_linedisp_update(struct linedisp *linedisp)
443-
{
444-
struct ht16k33_priv *priv = container_of(linedisp, struct ht16k33_priv,
445-
seg.linedisp);
446-
447-
schedule_delayed_work(&priv->work, 0);
448-
}
449-
450-
static const struct linedisp_ops ht16k33_linedisp_ops = {
451-
.update = ht16k33_linedisp_update,
452-
};
453-
454442
static void ht16k33_seg7_update(struct work_struct *work)
455443
{
456444
struct ht16k33_priv *priv = container_of(work, struct ht16k33_priv,
@@ -488,6 +476,18 @@ static void ht16k33_seg14_update(struct work_struct *work)
488476
i2c_smbus_write_i2c_block_data(priv->client, 0, ARRAY_SIZE(buf), buf);
489477
}
490478

479+
static void ht16k33_linedisp_update(struct linedisp *linedisp)
480+
{
481+
struct ht16k33_priv *priv = container_of(linedisp, struct ht16k33_priv,
482+
seg.linedisp);
483+
484+
schedule_delayed_work(&priv->work, 0);
485+
}
486+
487+
static const struct linedisp_ops ht16k33_linedisp_ops = {
488+
.update = ht16k33_linedisp_update,
489+
};
490+
491491
static int ht16k33_led_probe(struct device *dev, struct led_classdev *led,
492492
unsigned int brightness)
493493
{

0 commit comments

Comments
 (0)