Skip to content

Commit

Permalink
ieee1394: mark bus_info_data as a __be32 array
Browse files Browse the repository at this point in the history
Two access functions get_max_rom and set_hw_config_rom are
changed to take __be32 as well.  Only bus_info_data was
ever passed in so this is OK.  All other uses of bus_info_data
treated it as a be32 value already.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
hharrison authored and Stefan Richter committed Jan 4, 2009
1 parent a5e6f64 commit debb480
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/ieee1394/csr1212.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ struct csr1212_csr_rom_cache {
struct csr1212_csr {
size_t bus_info_len; /* bus info block length in bytes */
size_t crc_len; /* crc length in bytes */
u32 *bus_info_data; /* bus info data incl bus name and EUI */
__be32 *bus_info_data; /* bus info data incl bus name and EUI */

void *private; /* private, bus specific data */
struct csr1212_bus_ops *ops;
Expand Down
2 changes: 1 addition & 1 deletion drivers/ieee1394/hosts.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct hpsb_host_driver {
* to set the hardware ConfigROM if the hardware supports handling
* reads to the ConfigROM on its own. */
void (*set_hw_config_rom)(struct hpsb_host *host,
quadlet_t *config_rom);
__be32 *config_rom);

/* This function shall implement packet transmission based on
* packet->type. It shall CRC both parts of the packet (unless
Expand Down
2 changes: 1 addition & 1 deletion drivers/ieee1394/ohci1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -2973,7 +2973,7 @@ alloc_dma_trm_ctx(struct ti_ohci *ohci, struct dma_trm_ctx *d,
return 0;
}

static void ohci_set_hw_config_rom(struct hpsb_host *host, quadlet_t *config_rom)
static void ohci_set_hw_config_rom(struct hpsb_host *host, __be32 *config_rom)
{
struct ti_ohci *ohci = host->hostdata;

Expand Down

0 comments on commit debb480

Please sign in to comment.