Attention is currently required from: Edward O'Callaghan, Angel Pons, Anastasia Klimchuk.
Patch set 2:Code-Review +1
View Change
2 comments:
File pickit2_spi.c:
Patch Set #1, Line 57: };
Oh I am so happy that you asked! We haven't discussed this aspect in details, which I was slightly w […]
I see what you are getting at.
Still, in theory, a struct with a single member is storage-wise the
same as that member without a struct. If you'd let the framework
allocate a pointer (instead of a struct with only a pointer within)
it wouldn't make a difference. `data` would then be of type
`libusb_device_handle **`. A pointer to a struct is nicer than
that, so struct seems good!
Patch Set #1, Line 343: static struct spi_master spi_master_pickit2 = {
>>> The per-instance `data` pointer should simply be passed to register_spi_master() […]
Ack
To view, visit change 52774. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ibacc4738bee02c371c41583d321e0337128ad18a
Gerrit-Change-Number: 52774
Gerrit-PatchSet: 2
Gerrit-Owner: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Comment-Date: Mon, 03 May 2021 16:07:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Comment-In-Reply-To: Edward O'Callaghan <quasisec@chromium.org>
Comment-In-Reply-To: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-MessageType: comment