aboutsummaryrefslogtreecommitdiffstats
path: root/util/manibuilder/mani-wrapper.sh
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2023-01-09 10:43:47 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2023-01-11 22:51:35 +0000
commita031c81f51eae94877a5076cd1a585d3cbf1bb5c (patch)
treea73023d1aa7911313c4099c994f92c50a76e1ca1 /util/manibuilder/mani-wrapper.sh
parent4ae3ac3062230f3c7f3f16a5cdd4682b98bd7d2f (diff)
downloadflashrom-a031c81f51eae94877a5076cd1a585d3cbf1bb5c.tar.gz
flashrom-a031c81f51eae94877a5076cd1a585d3cbf1bb5c.tar.bz2
flashrom-a031c81f51eae94877a5076cd1a585d3cbf1bb5c.zip
parallel: Drop explicit fallback_chip_X boilerplate
A NULL func pointer is necessary and sufficient for the condition `NULL func pointer => fallback_chip_X' as to not need this explicit specification. Therefore drop the explicit need to specify these fallback callback function pointer in the par_master struct. This is a reasonable default for every driver in the tree. Furthermore, move the 'fallback_chip_X()' func from the generic programmer.c register logic into its relevant home of parallel.c and make static local to clean up link-time symbol space. This simplifies the code and driver development. Change-Id: If25c0048a07057aa72be6ffa8d8ad7f0a568dcf7 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/71745 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/manibuilder/mani-wrapper.sh')
0 files changed, 0 insertions, 0 deletions
'n142' href='#n142'>142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238