Cardiff midfielder Peter Whittingham says the club have to use the pain of relegation as motivation to get back into the Premier League.