Skip to content

Commit

Permalink
drm/vc4: txp: Rename TXP data structure
Browse files Browse the repository at this point in the history
The TXP data structure has a name too generic for the multiple variants
we'll have to support. Let's rename it to mention the SoC it applies to.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241025-drm-vc4-2712-support-v2-14-35efa83c8fc0@raspberrypi.com
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
  • Loading branch information
mripard authored and 6by9 committed Nov 27, 2024
1 parent 66fbec8 commit 4013716
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/vc4/tests/vc4_mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct vc4_mock_desc {

static const struct vc4_mock_desc vc4_mock =
VC4_MOCK_DESC(
VC4_MOCK_CRTC_DESC(&vc4_txp_data.base,
VC4_MOCK_CRTC_DESC(&bcm2835_txp_data.base,
VC4_MOCK_OUTPUT_DESC(VC4_ENCODER_TYPE_TXP,
DRM_MODE_ENCODER_VIRTUAL,
DRM_MODE_CONNECTOR_WRITEBACK)),
Expand All @@ -77,7 +77,7 @@ static const struct vc4_mock_desc vc4_mock =

static const struct vc4_mock_desc vc5_mock =
VC4_MOCK_DESC(
VC4_MOCK_CRTC_DESC(&vc4_txp_data.base,
VC4_MOCK_CRTC_DESC(&bcm2835_txp_data.base,
VC4_MOCK_OUTPUT_DESC(VC4_ENCODER_TYPE_TXP,
DRM_MODE_ENCODER_VIRTUAL,
DRM_MODE_CONNECTOR_WRITEBACK)),
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ struct vc4_txp_data {
struct vc4_crtc_data base;
};

extern const struct vc4_txp_data vc4_txp_data;
extern const struct vc4_txp_data bcm2835_txp_data;

struct vc4_pv_data {
struct vc4_crtc_data base;
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/vc4/vc4_txp.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ static irqreturn_t vc4_txp_interrupt(int irq, void *data)
return IRQ_HANDLED;
}

const struct vc4_txp_data vc4_txp_data = {
const struct vc4_txp_data bcm2835_txp_data = {
.base = {
.name = "txp",
.debugfs_name = "txp_regs",
Expand Down Expand Up @@ -588,7 +588,7 @@ static void vc4_txp_remove(struct platform_device *pdev)
}

static const struct of_device_id vc4_txp_dt_match[] = {
{ .compatible = "brcm,bcm2835-txp", .data = &vc4_txp_data },
{ .compatible = "brcm,bcm2835-txp", .data = &bcm2835_txp_data },
{ /* sentinel */ },
};

Expand Down

0 comments on commit 4013716

Please sign in to comment.