Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9beec95 authored by Tejun Heo's avatar Tejun Heo
Browse files

[PATCH] libata-hp-prep: make probing related functions global



Hotplug will be implemented in libata-eh.c.  Make ata_dev_read_id()
and ata_dev_configure() global.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
parent 453b07ac
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1167,7 +1167,7 @@ unsigned int ata_pio_need_iordy(const struct ata_device *adev)
 *	RETURNS:
 *	RETURNS:
 *	0 on success, -errno otherwise.
 *	0 on success, -errno otherwise.
 */
 */
static int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
		    int post_reset, u16 *id)
		    int post_reset, u16 *id)
{
{
	struct ata_port *ap = dev->ap;
	struct ata_port *ap = dev->ap;
@@ -1292,7 +1292,7 @@ static void ata_dev_config_ncq(struct ata_device *dev,
 *	RETURNS:
 *	RETURNS:
 *	0 on success, -errno otherwise
 *	0 on success, -errno otherwise
 */
 */
static int ata_dev_configure(struct ata_device *dev, int print_info)
int ata_dev_configure(struct ata_device *dev, int print_info)
{
{
	struct ata_port *ap = dev->ap;
	struct ata_port *ap = dev->ap;
	const u16 *id = dev->id;
	const u16 *id = dev->id;
+3 −0
Original line number Original line Diff line number Diff line
@@ -50,6 +50,9 @@ extern void ata_port_flush_task(struct ata_port *ap);
extern unsigned ata_exec_internal(struct ata_device *dev,
extern unsigned ata_exec_internal(struct ata_device *dev,
				  struct ata_taskfile *tf, const u8 *cdb,
				  struct ata_taskfile *tf, const u8 *cdb,
				  int dma_dir, void *buf, unsigned int buflen);
				  int dma_dir, void *buf, unsigned int buflen);
extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
			   int post_reset, u16 *id);
extern int ata_dev_configure(struct ata_device *dev, int print_info);
extern int sata_down_spd_limit(struct ata_port *ap);
extern int sata_down_spd_limit(struct ata_port *ap);
extern int sata_set_spd_needed(struct ata_port *ap);
extern int sata_set_spd_needed(struct ata_port *ap);
extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0);
extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0);