Kernel Newbies archive on lore.kernel.org
 help / Atom feed
* gpio: struct gpio_chip.set_multiple\get_multiple
@ 2019-01-10 17:54 Subhashini Rao Beerisetty
  0 siblings, 0 replies; 1+ messages in thread
From: Subhashini Rao Beerisetty @ 2019-01-10 17:54 UTC (permalink / raw)
  To: kernelnewbies, linux-gpio

[-- Attachment #1.1: Type: text/plain, Size: 765 bytes --]

Hi All,


struct gpio_chip {

  int (*get_multiple)(struct gpio_chip *chip,unsigned long *mask,
unsigned long *bits);

  void (*set_multiple)(struct gpio_chip *chip,unsigned long *mask,
unsigned long *bits);

}

struct gpio_chip provides set_multiple callback to assign output values for
multiple signals defined by “mask” and similarly it has get_multiple
callback to read values for multiple signals defined by “mask” and stores
them in “bits”.


 I’m using deprecated sysfs interface (/sys/class/gpio/gpiochipN – v4.4
kernel), in this kernel version I could not find any userspace control to
achieve to output values for multiple PIO’s and similarly to read multiple
PIO’s. Can someone clarify me on this?


Thanks,

[-- Attachment #1.2: Type: text/html, Size: 2905 bytes --]

<div dir="ltr"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p style="line-height:15pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">Hi All,<br style="overflow:visible;font-size-adjust:none;font-stretch:normal">
 </span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="background:white;margin:0in 0in 0pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">struct gpio_chip {</span></p><font color="#000000" face="Times New Roman" size="3">

</font><pre style="background:white"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif"><span>  </span>int (*get_multiple)(struct gpio_chip *chip,unsigned long *mask, unsigned long *bits);</span></pre><pre style="background:white"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif"><span>  </span>void (*set_multiple)(struct gpio_chip *chip,unsigned long *mask, unsigned long *bits);</span></pre><font color="#000000" face="Times New Roman" size="3">

</font><p style="line-height:15pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">}</span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="background:rgb(252,252,252);margin:0in 0in 0pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">struct gpio_chip provides set_multiple callback to assign
output values for multiple signals defined by “mask” and similarly it has get_multiple
callback to read values for multiple signals defined by “mask” and stores them
in “bits”.</span></p><p style="background:rgb(252,252,252);margin:0in 0in 0pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt"></span><br></p><p style="background:rgb(252,252,252);margin:0in 0in 0pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt"> I’m using </span><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">deprecated sysfs interface (/sys/class/gpio/gpiochipN – v4.4
kernel), in this kernel version I could not find any userspace control to achieve
to </span><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">output values for
multiple PIO’s and similarly to read multiple PIO’s. Can someone clarify me on
this?</span></p><p style="background:rgb(252,252,252);margin:0in 0in 0pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt"></span><br></p><p style="background:rgb(252,252,252);margin:0in 0in 0pt"><span style="color:rgb(34,34,34);font-family:&quot;Arial&quot;,sans-serif;font-size:10pt">Thanks,</span></p><font color="#000000" face="Times New Roman" size="3">

</font></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 17:54 gpio: struct gpio_chip.set_multiple\get_multiple Subhashini Rao Beerisetty

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox