Lines Matching defs:lnbp22
3 * lnbp22.h - driver for lnb supply and control ic lnbp22
20 #include "lnbp22.h"
29 struct lnbp22 {
37 struct lnbp22 *lnbp22 = (struct lnbp22 *)fe->sec_priv;
41 .buf = (char *)&lnbp22->config,
42 .len = sizeof(lnbp22->config),
48 lnbp22->config[3] = 0x60; /* Power down */
53 lnbp22->config[3] |= LNBP22_EN;
56 lnbp22->config[3] |= (LNBP22_EN | LNBP22_VSEL);
62 dprintk(1, "%s: 0x%02x)\n", __func__, lnbp22->config[3]);
63 return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO;
68 struct lnbp22 *lnbp22 = (struct lnbp22 *) fe->sec_priv;
72 .buf = (char *)&lnbp22->config,
73 .len = sizeof(lnbp22->config),
78 lnbp22->config[3] |= LNBP22_LLC;
80 lnbp22->config[3] &= ~LNBP22_LLC;
82 return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO;
99 struct lnbp22 *lnbp22 = kmalloc(sizeof(struct lnbp22), GFP_KERNEL);
100 if (!lnbp22)
104 lnbp22->config[0] = 0x00; /* ? */
105 lnbp22->config[1] = 0x28; /* ? */
106 lnbp22->config[2] = 0x48; /* ? */
107 lnbp22->config[3] = 0x60; /* Power down */
108 lnbp22->i2c = i2c;
109 fe->sec_priv = lnbp22;
114 kfree(lnbp22);
130 MODULE_DESCRIPTION("Driver for lnb supply and control ic lnbp22");