Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / video / fbdev / via / via_aux_vt1621.c
blobb05f4a3baebf17ed2d333127f9671d5bc6a07517
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright 2011 Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
4 */
5 /*
6 * driver for VIA VT1621(M) TV Encoder
7 */
9 #include <linux/slab.h>
10 #include "via_aux.h"
13 static const char *name = "VT1621(M) TV Encoder";
16 void via_aux_vt1621_probe(struct via_aux_bus *bus)
18 struct via_aux_drv drv = {
19 .bus = bus,
20 .addr = 0x20,
21 .name = name};
22 u8 tmp;
24 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x02)
25 return;
27 printk(KERN_INFO "viafb: Found %s\n", name);
28 via_aux_add(&drv);