Lines Matching defs:lnbp21
2 * lnbp21.h - driver for lnb supply and control ic lnbp21
36 #include "lnbp21.h"
38 struct lnbp21 {
47 struct lnbp21 *lnbp21 = (struct lnbp21 *) fe->sec_priv;
49 .buf = &lnbp21->config,
50 .len = sizeof(lnbp21->config) };
52 lnbp21->config &= ~(LNBP21_VSEL | LNBP21_EN);
58 lnbp21->config |= LNBP21_EN;
61 lnbp21->config |= (LNBP21_EN | LNBP21_VSEL);
67 lnbp21->config |= lnbp21->override_or;
68 lnbp21->config &= lnbp21->override_and;
70 return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO;
75 struct lnbp21 *lnbp21 = (struct lnbp21 *) fe->sec_priv;
77 .buf = &lnbp21->config,
78 .len = sizeof(lnbp21->config) };
81 lnbp21->config |= LNBP21_LLC;
83 lnbp21->config &= ~LNBP21_LLC;
85 lnbp21->config |= lnbp21->override_or;
86 lnbp21->config &= lnbp21->override_and;
88 return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO;
103 struct lnbp21 *lnbp21 = kmalloc(sizeof(struct lnbp21), GFP_KERNEL);
104 if (!lnbp21)
108 lnbp21->config = LNBP21_ISEL;
109 lnbp21->i2c = i2c;
110 fe->sec_priv = lnbp21;
113 lnbp21->override_or = override_set;
116 lnbp21->override_and = ~override_clear;
120 kfree(lnbp21);
135 MODULE_DESCRIPTION("Driver for lnb supply and control ic lnbp21");