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 | */ |
8 | |
9 | #include <linux/slab.h> |
10 | #include "via_aux.h" |
11 | |
12 | |
13 | static const char *name = "VT1621(M) TV Encoder" ; |
14 | |
15 | |
16 | void via_aux_vt1621_probe(struct via_aux_bus *bus) |
17 | { |
18 | struct via_aux_drv drv = { |
19 | .bus = bus, |
20 | .addr = 0x20, |
21 | .name = name}; |
22 | u8 tmp; |
23 | |
24 | if (!via_aux_read(drv: &drv, start: 0x1B, buf: &tmp, len: 1) || tmp != 0x02) |
25 | return; |
26 | |
27 | printk(KERN_INFO "viafb: Found %s\n" , name); |
28 | via_aux_add(drv: &drv); |
29 | } |
30 | |