<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/cmd/adc.c, branch v2023.07.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/cmd/adc.c?h=v2023.07.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/cmd/adc.c?h=v2023.07.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2022-10-18T03:17:12Z</updated>
<entry>
<title>cmd: List all uclass devices regardless of probe error</title>
<updated>2022-10-18T03:17:12Z</updated>
<author>
<name>Michal Suchanek</name>
<email>msuchanek@suse.de</email>
</author>
<published>2022-10-12T19:57:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8676ae36ae4617b20b5cc49972c54c63c7b27bb3'/>
<id>urn:sha1:8676ae36ae4617b20b5cc49972c54c63c7b27bb3</id>
<content type='text'>
There are a few commands that iterate uclass with
uclass_first_device/uclass_next_device or the _err variant.

Use the _check class iterator variant to get devices that fail to probe
as well, and print the status.

Signed-off-by: Michal Suchanek &lt;msuchanek@suse.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>cmd: fix do_adc_single()</title>
<updated>2022-08-04T17:59:59Z</updated>
<author>
<name>Vyacheslav Bocharov</name>
<email>adeep@lexina.in</email>
</author>
<published>2022-07-03T12:49:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6ac4774426d687b5c365c79c9187e88f6c874878'/>
<id>urn:sha1:6ac4774426d687b5c365c79c9187e88f6c874878</id>
<content type='text'>
The source code contains an error:
- argv[2] contains &lt;channel&gt; arg, variable for env_set is in argv[3]
- number of args is 4

Revert 54d24d72601321f4470c4edf31c6b29adae424a7
  cmd: simplify do_adc_single()

Fixes 9de612ae4ded53f742f5f99929c06d0839471ced
  cmd: adc: Add support for storing ADC result in env variable
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>cmd: simplify do_adc_single()</title>
<updated>2022-05-05T19:06:02Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>heinrich.schuchardt@canonical.com</email>
</author>
<published>2022-04-25T20:26:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=54d24d72601321f4470c4edf31c6b29adae424a7'/>
<id>urn:sha1:54d24d72601321f4470c4edf31c6b29adae424a7</id>
<content type='text'>
If argc is not &lt; 3, it must be &gt;= 3.

If argc &gt;= 3, argv[2] cannot be NULL.

Fixes: 9de612ae4ded ("cmd: adc: Add support for storing ADC result in env variable")
Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</content>
</entry>
<entry>
<title>cmd: adc: Add support for storing ADC result in env variable</title>
<updated>2022-04-22T19:44:10Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2022-04-14T16:52:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9de612ae4ded53f742f5f99929c06d0839471ced'/>
<id>urn:sha1:9de612ae4ded53f742f5f99929c06d0839471ced</id>
<content type='text'>
Add the ability to save ADC conversion result in an environment
variable. This is useful for further arbitrary processing by the
U-Boot scripts.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Fabrice Gasnier &lt;fabrice.gasnier@foss.st.com&gt;
Cc: Patrice Chotard &lt;patrice.chotard@foss.st.com&gt;
Cc: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</content>
</entry>
<entry>
<title>cmd: adc: Report return value on error</title>
<updated>2022-01-14T18:16:11Z</updated>
<author>
<name>Samuel Dionne-Riel</name>
<email>samuel@dionne-riel.com</email>
</author>
<published>2021-12-20T23:23:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4a05497a8ce9292017b7a5d0e48ecc45705a0a4b'/>
<id>urn:sha1:4a05497a8ce9292017b7a5d0e48ecc45705a0a4b</id>
<content type='text'>
Reporting the return value should always be done on error conditions,
this way the developer can start debugging issues with more knowledge
in-hand.

Signed-off-by: Samuel Dionne-Riel &lt;samuel@dionne-riel.com&gt;
</content>
</entry>
<entry>
<title>command: Remove the cmd_tbl_t typedef</title>
<updated>2020-05-18T22:36:55Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-05-10T17:40:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=09140113108541b95d340f3c7b6ee597d31ccc73'/>
<id>urn:sha1:09140113108541b95d340f3c7b6ee597d31ccc73</id>
<content type='text'>
We should not use typedefs in U-Boot. They cannot be used as forward
declarations which means that header files must include the full header to
access them.

Drop the typedef and rename the struct to remove the _s suffix which is
now not useful.

This requires quite a few header-file additions.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>cmd: adc: Use the sub-command infrastructure</title>
<updated>2019-01-15T20:28:54Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-12-03T21:54:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9652cfd9ee5679b72f28d581d7d48916f8031937'/>
<id>urn:sha1:9652cfd9ee5679b72f28d581d7d48916f8031937</id>
<content type='text'>
And you get sub-command auto-completion for free.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>cmd: adc: add an option to scan some or all available channels</title>
<updated>2018-11-20T17:35:34Z</updated>
<author>
<name>Fabrice Gasnier</name>
<email>fabrice.gasnier@st.com</email>
</author>
<published>2018-11-12T13:04:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=61927d286d2a4f4fd975967655590e8a59588533'/>
<id>urn:sha1:61927d286d2a4f4fd975967655590e8a59588533</id>
<content type='text'>
Add new option to 'adc' command to do a single scan of:
- some channel(s), using mask argument
- all channels available on an ADC device (when optional mask is omitted).

Signed-off-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>cmd: adc: print single conversion also in uV</title>
<updated>2018-11-20T17:35:34Z</updated>
<author>
<name>Fabrice Gasnier</name>
<email>fabrice.gasnier@st.com</email>
</author>
<published>2018-11-12T13:04:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c56fc49a60397d59b3949efa8c26ab15d7ffa417'/>
<id>urn:sha1:c56fc49a60397d59b3949efa8c26ab15d7ffa417</id>
<content type='text'>
Use newly introduced adc_raw_to_uV() API to print conversion result
both as raw value and micro-volts by default.

Signed-off-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>cmd: adc: add info on channel mask</title>
<updated>2018-11-20T17:35:34Z</updated>
<author>
<name>Fabrice Gasnier</name>
<email>fabrice.gasnier@st.com</email>
</author>
<published>2018-11-12T13:03:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1c84d904a5fb7e25dfba459c23fde964c0cde49e'/>
<id>urn:sha1:1c84d904a5fb7e25dfba459c23fde964c0cde49e</id>
<content type='text'>
Enhance adc info command to report also the channel mask.

Signed-off-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
