summaryrefslogtreecommitdiff
path: root/scripts/dummy-tools/python3
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-05-25 15:04:40 -0700
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-05-27 11:10:21 +0200
commit7fbdbc7d028a20a78b7d28a9510a216c76b5fbfd (patch)
treed43b8a7eacc8f322c7eba18290b0d3a83379beae /scripts/dummy-tools/python3
parent8e4531667d718e2e9b193928cf9b2497fa0d01ef (diff)
mtd: rawnand: qcom: embed nand_controller into qcom_nand_controller
The qcom_nand_controller had a struct nand_controller *controller pointer that was assigned to (struct nand_controller *)&nandc[1], with the allocation oversized by sizeof(*controller) to make room. get_qcom_nand_controller() then walked backwards from chip->controller using sizeof()-based arithmetic to recover the enclosing nandc. Embed the nand_controller directly into qcom_nand_controller and use container_of() in get_qcom_nand_controller(). The header now needs the full rawnand.h definition rather than a forward declaration. Assisted-by: Claude:Opus-4.7 Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions