Thornton, William, Sir, active 1822, Major-General; Deputy Adjutant-General, Ireland