<div>Hi,</div>
<div> </div>
<div>I would like to know how to add new function to a driver in Linux Framework?</div>
<div> </div>
<div>For eg: In GPIO driver, there is gpio_chip structure defined.</div>
<div> </div>
<div>static struct gpio_chip mygpio_chip = {<br> .label = "mygpio",<br> .owner = THIS_MODULE,<br> .direction_input = mygpio_direction_input,<br>
.get = mygpio_get,<br> .direction_output = mygpio_direction_output,<br> .set = mygpio_set,<br> .to_irq = mygpio_to_irq,<br>
};<br></div>
<div>If i want to add <strong>mygpio_pulldown</strong> or <strong>mygpio_altfunc</strong> to support few more gpio functionalities, how and where can i add these functions in the structure?</div>
<div> </div>
<div>Any suggestions on this will be appreciated.</div>
<div> </div>
<div>Thanks in advance,</div>
<div>Asha</div>